]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sat, 13 Oct 2001 19:58:41 +0000 (19:58 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 13 Oct 2001 19:58:41 +0000 (19:58 +0000)
old/fileutils/ChangeLog

index 055fa3442656bf49129bf4ab02fa7092cbe3ccfe..956c186bca2152b2f44c01a9e9121581afbfb1f3 100644 (file)
@@ -2,6 +2,38 @@
 
        * Version 4.1.1.
 
+       Remove the link-preserving semantics from cp_options.dereference.
+       Clean up the code that preserves links for `cp -d' and `mv'.
+       Introduce new options:
+         --preserve[={mode,ownership,timestamps,links,all}]
+         --no-preserve={mode,ownership,timestamps,links,all}
+       -p and --preserve remain unchanged and are equivalent to
+         `--preserve=mode,ownership,timestamps'
+       Separate -d and --no-dereference options.  -d remains unchanged,
+         but --no-dereference no longer implies --preserve=links
+
+       * src/cp.c (enum) [NO_DEREFERENCE_OPTION]: New member.
+       (enum) [NO_PRESERVE_ATTRIBUTES_OPTION]: New member.
+       (enum) [PRESERVE_ATTRIBUTES_OPTION]: New member.
+       (long_opts): Separate -d and --no-dereference options.
+       Add `no-preserve'.
+       Separate -p and --preserve options.
+       The long-named --preserve now accepts optional arguments; -p doesn't.
+       (usage): Describe additions and changes.
+       (cp_option_init): Initialize new member, preserve_links, to 0.
+       (decode_preserve_arg): New function.
+       (main) [case 'a']: Set preserve_links to 1.
+       [case 'd']: Set preserve_links to 1.
+       Add `case' for long-named --no-dereference.
+       Handle long-named --no-preserve and --preserve.
+
+       * src/copy.h (enum Dereference_symlink): Add comments.
+       (struct cp_options) [preserve_links]: New member.
+       * src/install.c (cp_option_init): Initialize new member to 0.
+       * src/mv.c (cp_option_init): Initialize new member to 1.
+
+2001-10-13  Jim Meyering  <meyering@lucent.com>
+
        * src/copy.h (struct cp_options) [failed_unlink_is_fatal]: Remove
        unused member.
        * src/mv.c (cp_option_init): Don't set it.