summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-05-10 14:25:48 +0000
committerJim Meyering <jim@meyering.net>2001-05-10 14:25:48 +0000
commitdd4aedd1d3136f589f6b97e46c3fc702a991c105 (patch)
treeae57e43d0a31f409af753ba70c6b25ca620a10e1 /src
parent1bb999e5195a1abd7c55e105452d64869c028d8c (diff)
downloadcoreutils-dd4aedd1d3136f589f6b97e46c3fc702a991c105.tar.xz
(main): Fix thinko: s/argv[optind]/optarg/.
Diffstat (limited to 'src')
-rw-r--r--src/chown.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chown.c b/src/chown.c
index 3b9a656de..ad6e86317 100644
--- a/src/chown.c
+++ b/src/chown.c
@@ -173,11 +173,11 @@ main (int argc, char **argv)
case FROM_OPTION:
{
char *u_dummy, *g_dummy;
- const char *e = parse_user_spec (argv[optind],
+ const char *e = parse_user_spec (optarg,
&old_uid, &old_gid,
&u_dummy, &g_dummy);
if (e)
- error (1, 0, "%s: %s", quote (argv[optind]), e);
+ error (1, 0, "%s: %s", quote (optarg), e);
break;
}
case 'R':