summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-01-17 23:41:01 +0000
committerJeremy Allison <jra@samba.org>2001-01-17 23:41:01 +0000
commitaa7cd802062e60fa09c60cc396cfbf12fa08b935 (patch)
tree1dd7f20ca4db26cabc13bb984a4c73703e8c12d7 /source3/smbd
parent22363b9d7893998169ac7a777df466940fd0a000 (diff)
downloadsamba-aa7cd802062e60fa09c60cc396cfbf12fa08b935.tar.gz
samba-aa7cd802062e60fa09c60cc396cfbf12fa08b935.tar.bz2
samba-aa7cd802062e60fa09c60cc396cfbf12fa08b935.zip
Typo in new file_chmod code caused file attribute changes to fail.
THIS NEEDS TO BE ADDED TO APPLIANCE-HEAD. Jeremy. (This used to be commit b92ccc0c8e5d066eeb077dfced6e717cd741c7a6)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/dosmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index 89e7c6b766..3a06dfe59a 100644
--- a/source3/smbd/dosmode.c
+++ b/source3/smbd/dosmode.c
@@ -237,7 +237,7 @@ int file_chmod(connection_struct *conn,char *fname,int dosmode,SMB_STRUCT_STAT *
ret = vfs_chmod(conn,fname,unixmode);
- if((errno != EPERM) && (errno != EACCES))
+ if((ret == -1) && (errno != EPERM) && (errno != EACCES))
return -1;
if(!lp_dos_filemode(SNUM(conn)))