From 65a00b69d70111ad745423b4f0a7348f5c25e2d1 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 20 Sep 2009 09:41:47 +0200 Subject: [PATCH] Tweak keep readall error messages --- bacula/src/filed/filed.c | 3 +-- bacula/src/lib/priv.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bacula/src/filed/filed.c b/bacula/src/filed/filed.c index d5e5ada948..15cc707a89 100644 --- a/bacula/src/filed/filed.c +++ b/bacula/src/filed/filed.c @@ -192,8 +192,7 @@ int main (int argc, char *argv[]) } if (!uid && keep_readall_caps) { - Emsg0(M_ERROR, 0, _("-k option has no meaning without -u option.\n")); - exit(1); + Emsg0(M_ERROR_TERM, 0, _("-k option has no meaning without -u option.\n")); } server_tid = pthread_self(); diff --git a/bacula/src/lib/priv.c b/bacula/src/lib/priv.c index 82f416554e..0e9267eb06 100644 --- a/bacula/src/lib/priv.c +++ b/bacula/src/lib/priv.c @@ -125,7 +125,7 @@ void drop(char *uname, char *gname, bool keep_readall_caps) } cap_free(caps); #else - Emsg0(M_ERROR_TERM, 0, _("Keep readall capabilities is not implemented on this platform yet\n")); + Emsg0(M_ERROR_TERM, 0, _("Keep readall caps not implemented this OS or missing libraries.\n")); #endif } else if (setuid(uid)) { berrno be; -- 2.39.5