mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
Get the logic right thistime :-(.
Jeremy. (This used to be commit 83596034cdecc7b03e35c0b4bb149e6bf9cebc70)
This commit is contained in:
parent
aa7cd80206
commit
ebee2c6c6d
@ -235,9 +235,10 @@ int file_chmod(connection_struct *conn,char *fname,int dosmode,SMB_STRUCT_STAT *
|
||||
unixmode |= (st->st_mode & (S_IWUSR|S_IWGRP|S_IWOTH));
|
||||
}
|
||||
|
||||
ret = vfs_chmod(conn,fname,unixmode);
|
||||
if ((ret = vfs_chmod(conn,fname,unixmode)) == 0)
|
||||
return 0;
|
||||
|
||||
if((ret == -1) && (errno != EPERM) && (errno != EACCES))
|
||||
if((errno != EPERM) && (errno != EACCES))
|
||||
return -1;
|
||||
|
||||
if(!lp_dos_filemode(SNUM(conn)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user