The Samba-Bugzilla – Attachment 3779 Details for
Bug 5934
mount.cifs doesn't honor $USER environment variable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
minor update to patch
mount.cifs-user-USER-env.patch (text/plain), 596 bytes, created by
Steve French
on 2008-12-04 10:21:19 UTC
(
hide
)
Description:
minor update to patch
Filename:
MIME Type:
Creator:
Steve French
Created:
2008-12-04 10:21:19 UTC
Size:
596 bytes
patch
obsolete
>diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c >index 3b56e5f..8e4d521 100644 >--- a/source/client/mount.cifs.c >+++ b/source/client/mount.cifs.c >@@ -1269,7 +1269,13 @@ int main(int argc, char ** argv) > } > > if(got_user == 0) { >- user_name = getusername(); >+ /* Note that the password will not be retrieved from the >+ USER env variable (ie user%password form) as there is >+ already a PASSWD environment varaible */ >+ if (getenv("USER")) >+ user_name = strdup(getenv("USER")); >+ if (user_name == NULL) >+ user_name = getusername(); > got_user = 1; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 5934
:
3776
|
3777
|
3778
| 3779