1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

Merge from HEAD.

This commit is contained in:
Tim Potter
-
parent 1bba071126
commit 89f3173f4f

View File

@ -359,7 +359,11 @@ static int copy_reg(const char *source, const char *dest)
* But root probably wants to know, e.g. if NFS disallows it.
*/
#ifdef HAVE_FCHOWN
if ((fchown(ofd, source_stats.st_uid, source_stats.st_gid) == -1) && (errno != EPERM))
#else
if ((chown(dest, source_stats.st_uid, source_stats.st_gid) == -1) && (errno != EPERM))
#endif
goto err;
/*