From aa7cd802062e60fa09c60cc396cfbf12fa08b935 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 17 Jan 2001 23:41:01 +0000 Subject: 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) --- source3/smbd/dosmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') 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))) -- cgit