diff options
author | Jim Meyering <jim@meyering.net> | 2001-05-12 10:03:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-05-12 10:03:16 +0000 |
commit | 37f9f5ed29d3641205dd2e6e701f9f7f74622ced (patch) | |
tree | a84e960c40d2d71fb5ab160692c56799f405016a /old/fileutils | |
parent | b4c2f799eccfd5a71e88ca42527cffecb871a91a (diff) | |
download | coreutils-37f9f5ed29d3641205dd2e6e701f9f7f74622ced.tar.xz |
*** empty log message ***
Diffstat (limited to 'old/fileutils')
-rw-r--r-- | old/fileutils/ChangeLog | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/old/fileutils/ChangeLog b/old/fileutils/ChangeLog index 48ccbfcf0..8f7120c89 100644 --- a/old/fileutils/ChangeLog +++ b/old/fileutils/ChangeLog @@ -1,5 +1,46 @@ 2001-05-11 Paul Eggert <eggert@twinsun.com> + dirname code cleanup. base_name now behaves more compatibly + with POSIX basename when given file names that have trailing + slashes, and similarly for dir_name. Add new primitives + base_len and dir_len. Put the directory-name-related decls + into dirname.h. + + * src/chmod.c (strip_trailing_slashes): Remove; now in dirname.h. + * src/chown.c (strip_trailing_slashes): Likewise. + * src/cp.c (strip_trailing_slashes): Likewise. + * src/df.c (strip_trailing_slashes): Likewise. + * src/ln.c (strip_trailing_slashes): Likewise. + * src/mkdir.c (strip_trailing_slashes): Likewise. + * src/rm.c (strip_trailing_slashes): Likewise. + * src/rmdir.c (strip_trailing_slashes): Likewise. + + * src/dircolors.c, src/ls.c, src/remove.c: + Include "dirname.h", to get base_name. + + * src/cp.c (make_path_private): Use dir_len instead of + dir_name, and avoid an extra mealloc call. + + * src/df.c (find_mount_point): No need to strip trailing + slashes before invoking new dir_name. + + * src/mv.c: Include "dirname.h". + (strip_trailing_slashes_2): Remove; now done by + strip_trailing_slashes. All callers changed. + + * src/sys2.h (base_name): Remove decl; now in dirname.h. + + * src/copy.c (copy_internal): Remove the code that tested for NULL + dir_name return value. That can't happen. + +2001-05-12 Jim Meyering <meyering@lucent.com> + + * src/ls.c (usage): Wording changes related to -o, -n, and -g. + * doc/omni-utils.texi: Likewise. + From Paul Eggert. + +2001-05-11 Paul Eggert <eggert@twinsun.com> + * src/chmod.c (mode_changed, change_file_mode): There's no need to invoke both lstat and stat here, so call just one of the two functions. |