summaryrefslogtreecommitdiff
path: root/utils/login.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-07-17 01:37:53 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-07-17 01:37:53 +0000
commit411934c3c6bc08aac18a88e46c0000e16a285efb (patch)
treeeffc38090c26968733d145b3f5269ca718585a30 /utils/login.c
parentf3170cdd316387d2318b9e63229b28155f6b7c61 (diff)
(main): If chown fails, print error message using errno, not -1.
Diffstat (limited to 'utils/login.c')
-rw-r--r--utils/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/login.c b/utils/login.c
index b8d51f5b..b93cbc4e 100644
--- a/utils/login.c
+++ b/utils/login.c
@@ -1000,7 +1000,7 @@ main(int argc, char *argv[])
eff_uids->num ? eff_uids->ids[0] : -1,
eff_gids->num ? eff_gids->ids[0] : -1);
if (err)
- error (0, err, "chown: %s", tty);
+ error (0, errno, "chown: %s", tty);
}
}