]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chfn: fix compilation without libuser
authorKarel Zak <kzak@redhat.com>
Fri, 19 Dec 2014 14:05:04 +0000 (15:05 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 19 Dec 2014 14:05:04 +0000 (15:05 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/chfn.c

index b42ad4f27078b93106a1b4236ba856c65e8f748f..15f897c71de38de086c05611c8d00b0a63fa0c1e 100644 (file)
@@ -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 "