diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-07-17 03:09:26 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-07-17 03:09:26 +0000 |
commit | 8401b6ae54fed6dcfcfa68b80c3ec9a05848d343 (patch) | |
tree | 757172be9648b9b367d74e3dc50a023f11e03ee5 | |
parent | c09c4070ffba4f99027fac2ee0c273308a0e076a (diff) | |
download | coreutils-8401b6ae54fed6dcfcfa68b80c3ec9a05848d343.tar.xz |
(process_file): Adjust to mode_adjust API change.
-rw-r--r-- | src/chmod.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/chmod.c b/src/chmod.c index ac517ba23..0a7ab5e1a 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]; |