]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chfn: use pathnames.h for paths
authorSami Kerola <kerolasa@iki.fi>
Wed, 29 Feb 2012 01:03:51 +0000 (02:03 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sun, 18 Mar 2012 13:28:04 +0000 (14:28 +0100)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
login-utils/chfn.c

index 21c6466bd14145d5bde465256eab7f88982c94c0..2d9a092cb319ff7f51a7e8670312ee409472de57 100644 (file)
@@ -142,9 +142,9 @@ int main(int argc, char **argv)
                                     oldf.username);
                        }
                }
-               if (setupDefaultContext("/etc/passwd"))
+               if (setupDefaultContext(_PATH_PASSWD))
                        errx(EXIT_FAILURE,
-                            _("can't set default context for /etc/passwd"));
+                            _("can't set default context for %s"), _PATH_PASSWD);
        }
 #endif