The Samba-Bugzilla – Attachment 3949 Details for
Bug 4640
cifs: -o guest yields root login
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
login as anonymous for -o guest option to mount.cifs command
guest.anonymous.patch (text/plain), 580 bytes, created by
shirishpargaonkar@gmail.com
on 2009-02-20 13:31:09 UTC
(
hide
)
Description:
login as anonymous for -o guest option to mount.cifs command
Filename:
MIME Type:
Creator:
shirishpargaonkar@gmail.com
Created:
2009-02-20 13:31:09 UTC
Size:
580 bytes
patch
obsolete
>diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c >index 9f4d1d3..6c21f42 100644 >--- a/source3/client/mount.cifs.c >+++ b/source3/client/mount.cifs.c >@@ -649,7 +649,9 @@ static int parse_options(char ** options > } else if (strncmp(data, "exec", 4) == 0) { > *filesys_flags &= ~MS_NOEXEC; > } else if (strncmp(data, "guest", 5) == 0) { >- got_password=1; >+ user_name = (char *)calloc(1, 1); >+ got_user = 1; >+ got_password = 1; > } else if (strncmp(data, "ro", 2) == 0) { > *filesys_flags |= MS_RDONLY; > } else if (strncmp(data, "rw", 2) == 0) {
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 4640
: 3949