summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2002-06-15Use quoted here doc by default,Jim Meyering
so e.g., backticks don't need to be escaped.
2002-06-15(TESTS): Add perm-1.Jim Meyering
2002-06-15*** empty log message ***Jim Meyering
2002-06-15*** empty log message ***Jim Meyering
2002-06-15.Jim Meyering
2002-06-15*** empty log message ***Jim Meyering
2002-06-15(lstat.c, stat.c, .sin.sed): Use t-$@, rather than $@-t,Jim Meyering
so that each temporary file name is unique and valid in the first 8 characters, for operation under DOS.
2002-06-15(FILE_TYPE_H): Guard entire contents with #ifndef.Jim Meyering
For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h> have been included before this file.
2002-06-15For GNU libc 2.2 and newer, ensure that <sys/types.h>Jim Meyering
has been included before this file.
2002-06-15.Jim Meyering
2002-06-15Change temp file names to accommodate DOS 8.3 file name limitation.Jim Meyering
2002-06-15Change temp. file name: s/\.err/_err/, for DOS.Jim Meyering
2002-06-15Change temp file names to accommodate DOS 8.3 file name limitation.Jim Meyering
2002-06-15Remove leading `.' from temp. names.Jim Meyering
2002-06-15Change temp file names to accommodate DOS 8.3 file name limitation.Jim Meyering
2002-06-15*** empty log message ***Jim Meyering
2002-06-15(S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK is defined.Jim Meyering
2002-06-15(S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK is defined.Jim Meyering
2002-06-15*** empty log message ***Jim Meyering
2002-06-15(S_ISNAM): Add to list of S_IS* macros.Jim Meyering
Rearrange #if directives for each S_IS macro. From diffutils-2.8.2.
2002-06-14*** empty log message ***Jim Meyering
2002-06-14Use the version from diffutils-2.8.2.Jim Meyering
2002-06-13update from master sourcesJim Meyering
2002-06-12tweak expected messageJim Meyering
2002-06-12(do_move): Give one diagnostic, not two, when unable toJim Meyering
unlink a destination file. This bug was introduced in fileutils-3.16l. $ /bin/mv /etc/passwd /tmp /bin/mv: cannot unlink `/etc/passwd': Permission denied /bin/mv: cannot remove `/etc/passwd': Permission denied [Exit 1]
2002-06-12(rm): Fix typo in assertion.Jim Meyering
2002-06-07tweak output: s/ directory//Jim Meyering
2002-06-07*** empty log message ***Jim Meyering
2002-06-07Also accept the permission-denied diagnosticJim Meyering
issued by some losing systems. Reported by Volker Borchert.
2002-06-07.Jim Meyering
2002-06-07*** empty log message ***Jim Meyering
2002-06-07(jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.Jim Meyering
They're needed at least for NetBSD 1.5.2. ($statxfs_includes): Include those same headers. ($statxfs_includes): Include sys/vfs.h if available. ($statxfs_includes): Likewise for sys/statvfs.h. Check for the following members in both structs statfs and statvfs: f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
2002-06-07*** empty log message ***Jim Meyering
2002-06-07(remove_entry): Use DT_IS_DIR only ifJim Meyering
HAVE_STRUCT_DIRENT_D_TYPE is defined.
2002-06-06.Jim Meyering
2002-06-03*** empty log message ***Jim Meyering
2002-06-03(rm invocation): Add the warning (also in the --help output)Jim Meyering
that the contents of a removed file are often recoverable.
2002-06-02*** empty log message ***Jim Meyering
2002-06-02(enum RM_status) [RM_NONEMPTY_DIR]: New member.Jim Meyering
(UPDATE_STATUS): New macro. Include save-cwd.h. (struct File_spec): Remove declaration. Update prototypes.
2002-06-02(main): Adapt to new calling sequence for rm.Jim Meyering
2002-06-02(do_move): Adapt to new calling sequence for rm.Jim Meyering
2002-06-02Merge in all changes from no-recursion branch.Jim Meyering
* src/remove.c (enum Ternary): Define type. (prompt): Add a parameter. Adjust callers. (remove_entry): Attempt rmdir here, only if a directory is `known' to be empty. Significant rework. (remove_dir): Propagate failure `up' also when rmdir fails. In interactive mode, prompt only once about an empty directory. * src/remove.c (enum Prompt_action): Define. (prompt): Two new parameters. Adjust all callers. Performance. * src/remove.c (remove_entry) [!ROOT_CAN_UNLINK_DIRS]: Don't call rmdir here. * src/remove.c (AD_pop_and_chdir): Don't use errno (it's not valid) in diagnostic for changed dev/ino. (remove_entry): Tweak diagnostic. * src/remove.c (ROOT_CAN_UNLINK_DIRS): Define. (AD_pop_and_chdir): Propagate status as we traverse back `up' the tree. (DO_UNLINK, DO_RMDIR): Define. (remove_entry) [ROOT_CAN_UNLINK_DIRS]: Add code so this works also on systems where root can use `unlink' to remove directories. * src/remove.c: Include file-type.h. Include file type in prompt when asking whether to remove file. Based on a patch from Paul Eggert. * src/remove.c (prompt): Add comment. * src/remove.c (remove_dir): Fix another (known) leak. * src/remove.c (hash_freer): New function. (AD_mark_helper): Use it. (AD_mark_as_unremovable): xstrdup the filename argument. (remove_dir): Free directory name. * src/remove.c (remove_entry): Fail also when trying to remove a directory without the --recursive option. Change a diagnostic, s/unlink/remove/, now that it can apply also to a directory. * src/remove.c (is_empty_dir): New function. (prompt): New function, factored out of... (remove_entry): ...here. Call it. (remove_dir): Call prompt before rmdir. * src/remove.c (remove_entry): Add support for prompting (e.g., -i). * src/remove.h (UPDATE_STATUS): New macro. * src/remove.c [AD_ent] (status): New member. This lets us propagate the status from a subdirectory to its parent via AD_pop_and_chdir. (AD_push_initial): Set it. (AD_push): Likewise. (remove_cwd_entries): Change return type to enum RM_status, and adjust all callers. (rm): Use UPDATE_STATUS rather than open-coding it. * src/remove.c (remove_entry): New function, factored out of... (remove_cwd_entries): ...here, and... (rm_1): ...here. * src/remove.c (remove_cwd_entries): Add support for --verbose. (remove_dir): Likewise. (rm_1): Likewise. * src/remove.c (rm): Free cwd_state, if necessary. * src/remove.c (rm_1): Remove now useless (always true) user_specified_name parameter. Adjust sole caller. * src/remove.c (rm): New function. This interface allows one to remove multiple arguments at a time. This is important in that it allows us to hide the remove_init/remove_fini functions and the cwd_state parameter. (rm_1): Renamed from rm. (remove_init, remove_fini): Remove functions. Each body is now part of `rm'.
2002-06-02*** empty log message ***Jim Meyering
2002-06-02.Jim Meyering
2002-06-02(TESTS): Add rm5.Jim Meyering
2002-06-02Adjust, now that we no longer report `removing all entries of directory ...'.Jim Meyering
2002-06-02adjustJim Meyering
2002-06-02don't give a diagnostic about each parentJim Meyering
2002-06-01*** empty log message ***Jim Meyering
2002-06-01Remove use of D_TYPE_IN_DIRENT, now that that symbol has been renamed.Jim Meyering