mount.cifs: if mount user not specified use USER environment variable
authorSteve French <stevef@smf-t60p.smfdom>
Fri, 5 Dec 2008 14:09:08 +0000 (08:09 -0600)
committerSteve French <stevef@smf-t60p.smfdom>
Fri, 5 Dec 2008 14:09:08 +0000 (08:09 -0600)
commit420a9071e1227435aada2a52c83ee44fda7180ed
treecd2ac2fd487d61cb061d216625b9b0c07006d68b
parent8be38511a3d87f4debbdc3a827b6ca898ccdde02
mount.cifs: if mount user not specified use USER environment variable

smbfs also would use the USER environment variable if the user was not
specified on the mount command and no credential file specified, and
mount.cifs man page says that we will use this environment variable
(in most cases this will not cause a behavior change, because
we were doing getuid of the current process which will usually be
the same name).

Fixes Samba bug #5934

Acked-by: Jeff Layton
source3/client/mount.cifs.c