diff options
author | Jim Meyering <jim@meyering.net> | 2001-05-10 14:25:48 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-05-10 14:25:48 +0000 |
commit | dd4aedd1d3136f589f6b97e46c3fc702a991c105 (patch) | |
tree | ae57e43d0a31f409af753ba70c6b25ca620a10e1 /src | |
parent | 1bb999e5195a1abd7c55e105452d64869c028d8c (diff) | |
download | coreutils-dd4aedd1d3136f589f6b97e46c3fc702a991c105.tar.xz |
(main): Fix thinko: s/argv[optind]/optarg/.
Diffstat (limited to 'src')
-rw-r--r-- | src/chown.c | 4 |
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': |