summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}