summaryrefslogtreecommitdiff
path: root/logsrvd
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@sudo.ws>2021-08-19 09:09:19 -0600
committerTodd C. Miller <Todd.Miller@sudo.ws>2021-08-19 09:09:19 -0600
commitaa151a163f628d23fbd4d54eb140db77b4aa15ed (patch)
tree2357cba3be984a4e5d7cf1b1ca3e47b293ee3d15 /logsrvd
parent216664c869d09d851ea4b55477a53ada47a79587 (diff)
downloadsudo-aa151a163f628d23fbd4d54eb140db77b4aa15ed.tar.gz
Sync warning messages with sudoers/logging.c
Avoids 3 translation strings that were effectively duplicated.
Diffstat (limited to 'logsrvd')
-rw-r--r--logsrvd/logsrvd_conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/logsrvd/logsrvd_conf.c b/logsrvd/logsrvd_conf.c
index 3c61ae827..460e22075 100644
--- a/logsrvd/logsrvd_conf.c
+++ b/logsrvd/logsrvd_conf.c
@@ -388,7 +388,7 @@ cb_iolog_user(struct logsrvd_config *config, const char *user, size_t offset)
debug_decl(cb_iolog_user, SUDO_DEBUG_UTIL);
if ((pw = getpwnam(user)) == NULL) {
- sudo_warnx(U_("unknown user %s"), user);
+ sudo_warnx(U_("unknown user: %s"), user);
debug_return_bool(false);
}
config->iolog.uid = pw->pw_uid;
@@ -405,7 +405,7 @@ cb_iolog_group(struct logsrvd_config *config, const char *group, size_t offset)
debug_decl(cb_iolog_group, SUDO_DEBUG_UTIL);
if ((gr = getgrnam(group)) == NULL) {
- sudo_warnx(U_("unknown group %s"), group);
+ sudo_warnx(U_("unknown group: %s"), group);
debug_return_bool(false);
}
config->iolog.gid = gr->gr_gid;
@@ -1207,7 +1207,7 @@ logsrvd_open_log_file(const char *path, int flags)
fd = open(path, flags, S_IRUSR|S_IWUSR);
(void)umask(oldmask);
if (fd == -1 || (fp = fdopen(fd, omode)) == NULL) {
- sudo_warn(U_("unable to open log file %s"), path);
+ sudo_warn(U_("unable to open log file: %s"), path);
if (fd != -1)
close(fd);
}