Debianization.
[dot-forward] / hier.c
diff --git a/hier.c b/hier.c
index 05a32cb..14e476a 100644 (file)
--- a/hier.c
+++ b/hier.c
@@ -1,16 +1,18 @@
 #include "auto_qmail.h"
 
-void hier()
+void hier(char *home)
 {
-  h(auto_qmail,-1,-1,0755);
+  if (!home)
+    home = auto_qmail;
+  h(home,-1,-1,0755);
 
-  d(auto_qmail,"bin",-1,-1,0755);
-  d(auto_qmail,"man",-1,-1,0755);
-  d(auto_qmail,"man/man1",-1,-1,0755);
-  d(auto_qmail,"man/cat1",-1,-1,0755);
+  d(home,"bin",-1,-1,0755);
+  d(home,"man",-1,-1,0755);
+  d(home,"man/man1",-1,-1,0755);
+  d(home,"man/cat1",-1,-1,0755);
 
-  c(auto_qmail,"bin","dot-forward",-1,-1,0755);
+  c(home,"bin","dot-forward",-1,-1,0755);
 
-  c(auto_qmail,"man/man1","dot-forward.1",-1,-1,0644);
-  c(auto_qmail,"man/cat1","dot-forward.0",-1,-1,0644);
+  c(home,"man/man1","dot-forward.1",-1,-1,0644);
+  c(home,"man/cat1","dot-forward.0",-1,-1,0644);
 }