search for: option_ignore_non_own

Displaying 1 result from an estimated 1 matches for "option_ignore_non_own".

2006 Oct 09
1
Not fail if can't set permissions ?
...bout 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 about it */ ; } else { /* Unexpected error - fail */ exit_with_non_zero_status = 1; } } } -- Andr? Majorel <URL:http://www.teaser.fr/~amajorel/> Do not use this account for regular correspondence. See the URL above for...