mirror of
https://github.com/samba-team/samba.git
synced 2025-08-15 13:49:28 +03:00
Merge from HEAD.
This commit is contained in:
@ -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.
|
* 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))
|
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;
|
goto err;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user