From: Paul Eggert Date: Mon, 17 Jul 2006 03:09:26 +0000 (+0000) Subject: (process_file): Adjust to mode_adjust API change. X-Git-Tag: v6.0~149 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8401b6ae54fed6dcfcfa68b80c3ec9a05848d343;p=thirdparty%2Fcoreutils.git (process_file): Adjust to mode_adjust API change. --- diff --git a/src/chmod.c b/src/chmod.c index ac517ba237..0a7ab5e1a6 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -222,7 +222,8 @@ process_file (FTS *fts, FTSENT *ent) if (ok) { old_mode = file_stats->st_mode; - new_mode = mode_adjust (old_mode, change, umask_value); + new_mode = mode_adjust (old_mode, S_ISDIR (old_mode) != 0, umask_value, + change, NULL); if (! S_ISLNK (old_mode)) { @@ -256,7 +257,8 @@ process_file (FTS *fts, FTSENT *ent) if (chmod_succeeded & diagnose_surprises) { - mode_t naively_expected_mode = mode_adjust (old_mode, change, 0); + mode_t naively_expected_mode = + mode_adjust (old_mode, S_ISDIR (old_mode) != 0, 0, change, NULL); if (new_mode & ~naively_expected_mode) { char new_perms[12];