diff options
Diffstat (limited to 'src/shared/copy.c')
-rw-r--r-- | src/shared/copy.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/shared/copy.c b/src/shared/copy.c index 9053fce333..51dd08eccd 100644 --- a/src/shared/copy.c +++ b/src/shared/copy.c @@ -1380,10 +1380,7 @@ int copy_access(int fdf, int fdt) { if (fstat(fdf, &st) < 0) return -errno; - if (fchmod(fdt, st.st_mode & 07777) < 0) - return -errno; - - return 0; + return RET_NERRNO(fchmod(fdt, st.st_mode & 07777)); } int copy_rights_with_fallback(int fdf, int fdt, const char *patht) { |