git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix guest mounts
[ira/wip.git]
/
source3
/
client
/
mount.cifs.c
diff --git
a/source3/client/mount.cifs.c
b/source3/client/mount.cifs.c
index ae8a7fd18619a823fa419a2e8574178d0f34ba46..8623d3c04b537d3022f23b62e2da3aaca40f29ef 100644
(file)
--- a/
source3/client/mount.cifs.c
+++ b/
source3/client/mount.cifs.c
@@
-649,7
+649,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) {
} 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) {
} else if (strncmp(data, "ro", 2) == 0) {
*filesys_flags |= MS_RDONLY;
} else if (strncmp(data, "rw", 2) == 0) {