mount.cifs: make cifs mounts honor the USER environment variable
authorSteve French <stevef@smfhomehp.(none)>
Fri, 5 Dec 2008 00:22:59 +0000 (18:22 -0600)
committerSteve French <stevef@smfhomehp.(none)>
Fri, 5 Dec 2008 00:22:59 +0000 (18:22 -0600)
commit467c1d137a2bfce2fedb3bc98e647e039073f13f
tree5d20505589ee4eb4a4c99379580b26a7b81ef0cb
parentdda44029e98d581e358146443d66d3e243163f15
mount.cifs: make cifs mounts honor the USER environment variable

If the user is not specified in the mount command or in a credential
file, then we are supposed to look for the USER environment variable
(this is usually, but not always set to the username of the current
uid, but it can be overridden by the user, which we were not checking)

Fixes samba bugzilla bug# 5934
source/client/mount.cifs.c