summaryrefslogtreecommitdiff
path: root/src/chgrp.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-15 13:29:56 +0000
committerJim Meyering <jim@meyering.net>2000-12-15 13:29:56 +0000
commit0e81b6b48ee7bf9b7eb6a0d8711acfb3786cce34 (patch)
tree6d25b3abc9a463f5f72a69453acb1dbcaec3eee7 /src/chgrp.c
parent694c6b3a86148ee5e50b3fac9e80540fb1325b2a (diff)
downloadcoreutils-0e81b6b48ee7bf9b7eb6a0d8711acfb3786cce34.tar.xz
(main): Reflect renaming: s/dereference/change_symlinks/.
Diffstat (limited to 'src/chgrp.c')
-rw-r--r--src/chgrp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/chgrp.c b/src/chgrp.c
index e1689d8cc..7bb052511 100644
--- a/src/chgrp.c
+++ b/src/chgrp.c
@@ -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;