debian/rules: Use `git' potty wrapper.
[qmail] / install.c
index 95034f2..5a4b980 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);
 }