diff options
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': |