Displaying 1 result from an estimated 1 matches for "destpathnam".
Did you mean:
destpathname
2006 Oct 09
1
Not fail if can't set permissions ?
...rectories, it fails and exits with a
non-zero status.
This is expected but it complicates error detection on my end. Is
there a way to make rsync not consider it an error when chmod()
fails on a directory owned by someone else ? Possibly warn about
it, but still exit with a zero status.
stat (destpathname, &deststat);
if ((deststat.st_mode & mask) != (srcstat.st_mode & mask))
{
if (chmod (pathname, srcstat.st_mode) != 0)
{
if (errno == EPERM
&& deststat.st_uid != geteuid ()
&& option_ignore_non_owner)
{
/* Expected error - just warn ab...