summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-02-25 20:27:43 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-02-25 20:27:43 +1100
commit24a63add2d92afa0084fec956df7508ea28aab89 (patch)
tree9ba254caca85d5a9398c8cc0f8b8038b3fd0028b /source3
parent4823e988b6360646931f9b6369bf7b8f512069a8 (diff)
parenteb5efd1978acd38cf6cc97e067b5105743ca5469 (diff)
downloadsamba-24a63add2d92afa0084fec956df7508ea28aab89.tar.gz
samba-24a63add2d92afa0084fec956df7508ea28aab89.tar.bz2
samba-24a63add2d92afa0084fec956df7508ea28aab89.zip
Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/auth_wbc.c2
-rw-r--r--source3/client/mount.cifs.c4
-rw-r--r--source3/modules/onefs_acl.c2
3 files changed, 5 insertions, 3 deletions
diff --git a/source3/auth/auth_wbc.c b/source3/auth/auth_wbc.c
index b0af9ffb1d..580c8b550d 100644
--- a/source3/auth/auth_wbc.c
+++ b/source3/auth/auth_wbc.c
@@ -74,7 +74,7 @@ static NTSTATUS check_wbc_security(const struct auth_context *auth_context,
user_info->internal_username));
params.level = WBC_AUTH_USER_LEVEL_PLAIN;
- params.password.plaintext = user_info->plaintext_password.data;
+ params.password.plaintext = (char *)user_info->plaintext_password.data;
} else {
DEBUG(3,("Checking encrypted password for %s.\n",
user_info->internal_username));
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c
index ae8a7fd186..8623d3c04b 100644
--- 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) {
- 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) {
diff --git a/source3/modules/onefs_acl.c b/source3/modules/onefs_acl.c
index b8097b6455..a1bfa6e121 100644
--- a/source3/modules/onefs_acl.c
+++ b/source3/modules/onefs_acl.c
@@ -890,7 +890,7 @@ onefs_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
uint32 security_info_sent, SEC_DESC *psd)
{
struct ifs_security_descriptor sd = {};
- int fd;
+ int fd = -1;
bool fopened = false;
NTSTATUS status;