The branch, v3-2-test has been updated via 5e6b019d70fef2ad082fc414053c131294bdeb49 (commit) from e831cd78ee3cf89abee058a475540955fad423ce (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log ----------------------------------------------------------------- commit 5e6b019d70fef2ad082fc414053c131294bdeb49 Author: Steve French <smfre...@gmail.com> Date: Tue Feb 24 17:10:19 2009 -0600 Fix guest mounts guest session setup, login (user id) as anonymous. This patch is for samba bugzilla bug 4640. Signed-off-by: Shirish Pargaonkar <shiri...@us.ibm.com> Acked-by: Jeff Layton <jlay...@redhat.com> Signed-off-by: Steve French <sfre...@samba.org> ----------------------------------------------------------------------- Summary of changes: source/client/mount.cifs.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c index 67e964d..d05115b 100644 --- a/source/client/mount.cifs.c +++ b/source/client/mount.cifs.c @@ -650,7 +650,9 @@ static int parse_options(char ** optionsp, int * filesys_flags) } 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) { -- Samba Shared Repository