summaryrefslogtreecommitdiffstats
path: root/source/smbd/dosmode.c
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
commitb92ccc0c8e5d066eeb077dfced6e717cd741c7a6 (patch)
tree9920dcba143baf90b5c26f6752f4a17f101e2a99 /source/smbd/dosmode.c
parent7853b27bc1765d48d5f06837f8aca71a3a0d1e5d (diff)
downloadsamba-b92ccc0c8e5d066eeb077dfced6e717cd741c7a6.tar.gz
samba-b92ccc0c8e5d066eeb077dfced6e717cd741c7a6.tar.xz
samba-b92ccc0c8e5d066eeb077dfced6e717cd741c7a6.zip
Typo in new file_chmod code caused file attribute changes to fail.
THIS NEEDS TO BE ADDED TO APPLIANCE-HEAD. Jeremy.
Diffstat (limited to 'source/smbd/dosmode.c')
-rw-r--r--source/smbd/dosmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/dosmode.c b/source/smbd/dosmode.c
index 89e7c6b766d..3a06dfe59a2 100644
--- a/source/smbd/dosmode.c
+++ b/source/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)))