1
0
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:
Jeremy Allison 2001-01-17 23:47:08 +00:00
parent aa7cd80206
commit ebee2c6c6d

View File

@ -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)))