mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3: VFS modules: Ignore EPERM errors on [f]chmod in crossrename module.
This is already done for [f]chown errors. Fix from CurlyMo <curlymoo1@gmail.com> Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
fdc9a322b1
commit
c6baacd7f0
@ -106,9 +106,11 @@ static int copy_reg(const char *source, const char *dest)
|
||||
*/
|
||||
|
||||
#if defined(HAVE_FCHMOD)
|
||||
if (fchmod (ofd, source_stats.st_ex_mode & 07777))
|
||||
if ((fchmod (ofd, source_stats.st_ex_mode & 07777) == -1) &&
|
||||
(errno != EPERM))
|
||||
#else
|
||||
if (chmod (dest, source_stats.st_ex_mode & 07777))
|
||||
if ((chmod (dest, source_stats.st_ex_mode & 07777) == -1) &&
|
||||
(errno != EPERM))
|
||||
#endif
|
||||
goto err;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user