Expand def_mailsub in the sudoers locale, not the user's.

This commit is contained in:
Todd C. Miller
2012-11-08 16:39:44 -05:00
parent a0c53bd751
commit cac7ca6a69
2 changed files with 2 additions and 2 deletions

View File

@@ -681,7 +681,7 @@ send_mail(const char *fmt, ...)
/* Pipes are all setup, send message. */
(void) fprintf(mail, "To: %s\nFrom: %s\nAuto-Submitted: %s\nSubject: ",
def_mailto, def_mailfrom ? def_mailfrom : user_name, "auto-generated");
for (p = def_mailsub; *p; p++) {
for (p = _(def_mailsub); *p; p++) {
/* Expand escapes in the subject */
if (*p == '%' && *(p+1) != '%') {
switch (*(++p)) {