]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Reflect renaming: s/dereference/change_symlinks/.
authorJim Meyering <jim@meyering.net>
Fri, 15 Dec 2000 13:29:56 +0000 (13:29 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 15 Dec 2000 13:29:56 +0000 (13:29 +0000)
src/chgrp.c
src/chown.c

index e1689d8ccfdb26bc830aa70132e2913bd54c3f56..7bb052511516e2279ac868eba24916b0660e1112 100644 (file)
@@ -53,8 +53,6 @@ struct group *getgrnam ();
 # define endgrent() ((void) 0)
 #endif
 
-int lstat ();
-
 /* The name the program was run with. */
 char *program_name;
 
@@ -180,7 +178,7 @@ main (int argc, char **argv)
          reference_file = optarg;
          break;
        case DEREFERENCE_OPTION:
-         chopt.change_symlinks = 0;
+         chopt.dereference = DEREF_ALWAYS;
          break;
        case 'R':
          chopt.recurse = 1;
@@ -192,7 +190,7 @@ main (int argc, char **argv)
          chopt.force_silent = 1;
          break;
        case 'h':
-         chopt.change_symlinks = 1;
+         chopt.dereference = DEREF_NEVER;
          break;
        case 'v':
          chopt.verbosity = V_high;
index 838332c695126ea1b540da5673f8b8a6c2700507..a5bc1f8e0618bd3807bd6c16477d520e72401159 100644 (file)
@@ -166,7 +166,7 @@ main (int argc, char **argv)
          reference_file = optarg;
          break;
        case DEREFERENCE_OPTION:
-         chopt.change_symlinks = 0;
+         chopt.dereference = DEREF_ALWAYS;
          break;
        case FROM_OPTION:
          {
@@ -188,7 +188,7 @@ main (int argc, char **argv)
          chopt.force_silent = 1;
          break;
        case 'h':
-         chopt.change_symlinks = 1;
+         chopt.dereference = DEREF_NEVER;
          break;
        case 'v':
          chopt.verbosity = V_high;