From fb9e0e1b1a846fcf2a0dbe7adcfab0fbc88e9cae Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 13 Aug 2001 08:37:02 +0000 Subject: *** empty log message *** --- old/fileutils/ChangeLog | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'old') diff --git a/old/fileutils/ChangeLog b/old/fileutils/ChangeLog index 2bb377d34..a678cad52 100644 --- a/old/fileutils/ChangeLog +++ b/old/fileutils/ChangeLog @@ -1,3 +1,26 @@ +2001-08-13 Jim Meyering + + Change the rules governing when mv prompts before removing an + existing destination file so it is consistent with POSIX: + Now, in the absence of --force (-f), if stdin is a tty and an + existing destination is not writable mv will prompt before + overwriting the destination file. + + * src/copy.c (overwrite_prompt): New function. + (copy_internal): Separate the mv-specific and non-move_mode code + that determines whether to prompt the user. + [move_mode]: Don't make mv fail (i.e. don't return 1) just because + the user declined to remove one or more of the files. + * src/copy.h (enum Interactive): New type. + (struct cp_options) [interactive]: Change type to Interactive. + (struct cp_options) [stdin_tty]: New member. + * src/cp.c (cp_option_init): Adjust initialization of `interactive', + and initialize new member, stdin_tty. + * src/mv.c (cp_option_init): Likewise. + * src/install.c (cp_option_init): Likewise. + * src/cp.c (main): Adjust initialization(s) of `interactive', + * src/mv.c (main): Likewise. + 2001-08-12 Jim Meyering * tests/mk-script ($program_name): Define. -- cgit v1.2.3-70-g09d2