X-Git-Url: https://git.distorted.org.uk/~mdw/qmail/blobdiff_plain/212b6f5da7c68d4577de2855da3c57ecf476dc96..HEAD:/install.c?ds=sidebyside diff --git a/install.c b/install.c index 95034f2..5a4b980 100644 --- a/install.c +++ b/install.c @@ -152,13 +152,18 @@ int mode; strerr_die6sys(111,FATAL,"unable to chmod ",home,"/",file,": "); } -void main() +void main(argc,argv) +int argc; +char *argv[]; { + char *home = 0; + if (argc > 1) + home = argv[1]; fdsourcedir = open_read("."); if (fdsourcedir == -1) strerr_die2sys(111,FATAL,"unable to open current directory: "); umask(077); - hier(); + hier(home); _exit(0); }