chiark / gitweb /
Debianization for 1.03-1
[qmail] / install.c
index 95034f21a3cdee34fb3a98d7af7f46202d47bd9c..5a4b9802d37240a527e23e17df737fba704d85b3 100644 (file)
--- 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);
 }