summaryrefslogtreecommitdiffstats
path: root/login-utils/chfn.c
diff options
context:
space:
mode:
authorKarel Zak2014-12-19 15:05:04 +0100
committerKarel Zak2014-12-19 15:05:04 +0100
commitbf6c15ed4a3e00ae1f9c18c6d9bbf8589e09a2da (patch)
tree5cf0521e5b2ac63e3444c7af1c258bdb7e2ca330 /login-utils/chfn.c
parentmore: fix compiler warnings (diff)
downloadkernel-qcow2-util-linux-bf6c15ed4a3e00ae1f9c18c6d9bbf8589e09a2da.tar.gz
kernel-qcow2-util-linux-bf6c15ed4a3e00ae1f9c18c6d9bbf8589e09a2da.tar.xz
kernel-qcow2-util-linux-bf6c15ed4a3e00ae1f9c18c6d9bbf8589e09a2da.zip
chfn: fix compilation without libuser
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/chfn.c')
-rw-r--r--login-utils/chfn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/chfn.c b/login-utils/chfn.c
index b42ad4f27..15f897c71 100644
--- a/login-utils/chfn.c
+++ b/login-utils/chfn.c
@@ -447,7 +447,7 @@ int main(int argc, char **argv)
/* If we're setuid and not really root, disallow the password change. */
if (geteuid() != getuid() && uid != ctl.pw->pw_uid) {
#else
- if (uid != 0 && uid != ctl.oldf.pw->pw_uid) {
+ if (uid != 0 && uid != ctl.pw->pw_uid) {
#endif
errno = EACCES;
err(EXIT_FAILURE, _("running UID doesn't match UID of user we're "