summaryrefslogtreecommitdiffstats
path: root/usr.sbin/chown/chown.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/chown/chown.c')
-rw-r--r--usr.sbin/chown/chown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/chown/chown.c b/usr.sbin/chown/chown.c
index f034857..9e01164 100644
--- a/usr.sbin/chown/chown.c
+++ b/usr.sbin/chown/chown.c
@@ -81,7 +81,7 @@ main(argc, argv)
ischown = myname[2] == 'o';
Hflag = Lflag = Pflag = hflag = 0;
- while ((ch = getopt(argc, argv, "HLPRfh")) != EOF)
+ while ((ch = getopt(argc, argv, "HLPRfh")) != -1)
switch (ch) {
case 'H':
Hflag = 1;
OpenPOWER on IntegriCloud