From f1b71c9fe7dbb4886588a036399cf5ebe16b7c47 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Tue, 9 Jul 2024 11:44:11 +0200 Subject: removed top level directory --- sqmail-4.3.07/src/maildirmake.c | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 sqmail-4.3.07/src/maildirmake.c (limited to 'sqmail-4.3.07/src/maildirmake.c') diff --git a/sqmail-4.3.07/src/maildirmake.c b/sqmail-4.3.07/src/maildirmake.c deleted file mode 100644 index 47edc44..0000000 --- a/sqmail-4.3.07/src/maildirmake.c +++ /dev/null @@ -1,24 +0,0 @@ -#include -#include -#include "logmsg.h" -#include "exit.h" - -#define WHO "maildirmake" - -int main(int argc, char **argv) -{ - umask(077); - if (!argv[1]) - logmsg(WHO,100,USAGE,"maildirmake name"); - if (mkdir(argv[1],0700) == -1) - logmsg(WHO,111,FATAL,B("unable to mkdir: ",argv[1])); - if (chdir(argv[1]) == -1) - logmsg(WHO,111,FATAL,B("unable to chdir to: ",argv[1])); - if (mkdir("tmp",0700) == -1) - logmsg(WHO,111,FATAL,B("unable to mkdir: ",argv[1],"/tmp")); - if (mkdir("new",0700) == -1) - logmsg(WHO,111,FATAL,B("unable to mkdir: ",argv[1],"/new")); - if (mkdir("cur",0700) == -1) - logmsg(WHO,111,FATAL,B("unable to mkdir: ",argv[1],"/cur")); - _exit(0); -} -- cgit v1.2.3