Date: Thu, 25 Sep 2014 17:59:01 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r272119 - stable/10/contrib/smbfs/lib/smb Message-ID: <201409251759.s8PHx1Mk005968@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Thu Sep 25 17:59:00 2014 New Revision: 272119 URL: http://svnweb.freebsd.org/changeset/base/272119 Log: MFC r271259: Make it possible to use empty user name ("-U ''") for mount_smbfs(8). It's just like "-U guest", except that it actually works, at least with Samba 4, which seems to return authentication failure for "-U guest". Approved by: re (gjb) Sponsored by: The FreeBSD Foundation Modified: stable/10/contrib/smbfs/lib/smb/ctx.c Directory Properties: stable/10/ (props changed) Modified: stable/10/contrib/smbfs/lib/smb/ctx.c ============================================================================== --- stable/10/contrib/smbfs/lib/smb/ctx.c Thu Sep 25 17:47:26 2014 (r272118) +++ stable/10/contrib/smbfs/lib/smb/ctx.c Thu Sep 25 17:59:00 2014 (r272119) @@ -191,10 +191,6 @@ smb_ctx_parseunc(struct smb_ctx *ctx, co smb_error("no user name required", 0); return EINVAL; } - if (*p1 == 0) { - smb_error("empty user name", 0); - return EINVAL; - } error = smb_ctx_setuser(ctx, tmp); if (error) return error; @@ -521,11 +517,6 @@ smb_ctx_resolve(struct smb_ctx *ctx) smb_error("no server name specified", 0); return EINVAL; } - if (ssn->ioc_user[0] == 0) { - smb_error("no user name specified for server %s", - 0, ssn->ioc_srvname); - return EINVAL; - } if (ctx->ct_minlevel >= SMBL_SHARE && sh->ioc_share[0] == 0) { smb_error("no share name specified for %s@%s", 0, ssn->ioc_user, ssn->ioc_srvname);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409251759.s8PHx1Mk005968>