summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-02 22:19:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:23 -0500
commit1f56aabf903c13b170d36e12e50c804f2cbeb79c (patch)
tree06ece25bcc8dcf937d4cef4889d3eb8752509e90 /source3/smbd
parent6deb189abbc316deb57ecdc1242295d14b205cc9 (diff)
downloadsamba-1f56aabf903c13b170d36e12e50c804f2cbeb79c.tar.gz
samba-1f56aabf903c13b170d36e12e50c804f2cbeb79c.tar.bz2
samba-1f56aabf903c13b170d36e12e50c804f2cbeb79c.zip
r21665: Fix bug #4428 reported by Jason Mader <jason@ncac.gwu.edu>.
Jeremy. (This used to be commit fe00771df517071c5e654e0b2b9cfde2d88bd701)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index f03c8216d4..f959f00b10 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1899,7 +1899,6 @@ static NTSTATUS mkdir_internal(connection_struct *conn,
uint32 file_attributes,
SMB_STRUCT_STAT *psbuf)
{
- int ret= -1;
mode_t mode;
char *parent_dir;
const char *dirname;
@@ -1927,7 +1926,7 @@ static NTSTATUS mkdir_internal(connection_struct *conn,
mode = unix_mode(conn, aDIR, name, parent_dir);
}
- if ((ret=SMB_VFS_MKDIR(conn, name, mode)) != 0) {
+ if (SMB_VFS_MKDIR(conn, name, mode) != 0) {
return map_nt_error_from_unix(errno);
}