Replace printf by puts for fixed strings. This would avoid issues caused

by formats introduced in translated strings.
This commit is contained in:
nekral-guest
2008-01-24 18:39:05 +00:00
parent f4b9f1b2e0
commit de239d9b01
5 changed files with 39 additions and 35 deletions

View File

@@ -729,7 +729,7 @@ int main (int argc, char **argv)
pw = get_my_pwent ();
if (NULL == pw) {
fprintf (stderr, _("Who are you?\n"));
fputs (_("Who are you?\n"), stderr);
#ifdef WITH_AUDIT
audit_logger (AUDIT_USER_CHAUTHTOK, Prog, "user lookup", NULL,
bywho, 0);
@@ -922,7 +922,7 @@ int main (int argc, char **argv)
*/
output:
if (setuid (0) != 0) {
fprintf (stderr, _("Cannot change ID to root.\n"));
fputs (_("Cannot change ID to root.\n"), stderr);
SYSLOG ((LOG_ERR, "can't setuid(0)"));
#ifdef WITH_AUDIT
audit_logger (AUDIT_USER_CHAUTHTOK, Prog, "changing id to root",