diff options
author | Jim Meyering <jim@meyering.net> | 2001-08-31 09:16:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-08-31 09:16:54 +0000 |
commit | d7c291117c39411523200892fd7e529f88ac1671 (patch) | |
tree | f9b9df2da6c339b19c5a2ebfc68ceed1835bfc78 /src | |
parent | 56478b94ae7f2cac36cbed7b025c00e49789ddbb (diff) | |
download | coreutils-d7c291117c39411523200892fd7e529f88ac1671.tar.xz |
(change_dir_mode): Remove statp arg; no longer needed.
Diffstat (limited to 'src')
-rw-r--r-- | src/chmod.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/chmod.c b/src/chmod.c index 842faf286..065e64af8 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -55,8 +55,7 @@ enum Verbosity }; static int change_dir_mode PARAMS ((const char *dir, - const struct mode_change *changes, - const struct stat *statp)); + const struct mode_change *changes)); /* The name the program was run with. */ char *program_name; @@ -185,18 +184,16 @@ change_file_mode (const char *file, const struct mode_change *changes, } if (recurse && S_ISDIR (file_stats.st_mode)) - errors |= change_dir_mode (file, changes, &file_stats); + errors |= change_dir_mode (file, changes); return errors; } /* Recursively change the modes of the files in directory DIR according to the list of operations CHANGES. - STATP points to the results of lstat on DIR. Return 0 if successful, 1 if errors occurred. */ static int -change_dir_mode (const char *dir, const struct mode_change *changes, - const struct stat *statp) +change_dir_mode (const char *dir, const struct mode_change *changes) { char *name_space, *namep; char *path; /* Full path of each entry to process. */ @@ -205,7 +202,7 @@ change_dir_mode (const char *dir, const struct mode_change *changes, unsigned pathlength; /* Bytes allocated for `path'. */ int errors = 0; - name_space = savedir (dir, statp->st_size); + name_space = savedir (dir); if (name_space == NULL) { if (force_silent == 0) |