aboutsummaryrefslogtreecommitdiffstats
path: root/smtpd/mail.maildir.c
diff options
context:
space:
mode:
Diffstat (limited to 'smtpd/mail.maildir.c')
-rw-r--r--smtpd/mail.maildir.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/smtpd/mail.maildir.c b/smtpd/mail.maildir.c
index effbc49a..a209764d 100644
--- a/smtpd/mail.maildir.c
+++ b/smtpd/mail.maildir.c
@@ -37,7 +37,10 @@ main(int argc, char *argv[])
{
int ch;
char *dirname = NULL;
-
+
+ if (! geteuid())
+ errx(1, "mail.maildir: may not be executed as root");
+
while ((ch = getopt(argc, argv, "d:")) != -1) {
switch (ch) {
case 'd':