summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorviega1998-05-31 19:31:07 +0000
committerviega1998-05-31 19:31:07 +0000
commit5bae61058c8eed48cf746ec316a09e1ee151e995 (patch)
tree71dfc3e4d10bec4f1f325bc684fb983c2e3e354a
parent8d187ce9270229da2ed1221404830a80a2ae066b (diff)
downloadmailman-5bae61058c8eed48cf746ec316a09e1ee151e995.tar.gz
mailman-5bae61058c8eed48cf746ec316a09e1ee151e995.tar.zst
mailman-5bae61058c8eed48cf746ec316a09e1ee151e995.zip
-rw-r--r--src/common.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/common.c b/src/common.c
index f21b49759..9e5b5137a 100644
--- a/src/common.c
+++ b/src/common.c
@@ -56,18 +56,20 @@ fatal(const char* ident, const char* format, ...)
/* Is the parent process allowed to call us?
*/
void
-check_caller(const char* ident, uid_t parentuid, gid_t parentgid)
+check_caller(const char* ident, uidt parentuid, gid_t parentgid)
{
/* compare to our parent's uid */
if (parentuid != getuid()) {
fatal(ident,
- "Attempt to exec script with invalid uid %d, expected %d",
- getuid(), parentuid);
+ "Failure to exec script. WANTED uid %d, GOT uid %d. "
+ "(Reconfigure to take %d?)",
+ parentuid, getuid(), getuid());
}
if (parentgid != getgid()) {
fatal(ident,
- "Attempt to exec script with invalid gid %d, expected %d",
- getgid(), parentgid);
+ "Failure to exec script. WANTED gid %d, GOT gid %d. "
+ "(Reconfigure to take %d?)",
+ parentgid, getgid(), getgid());
}
}