X-Git-Url: https://git.distorted.org.uk/~mdw/dot-forward/blobdiff_plain/cbd69c7ae2a504b2f6e335c92319284f50290ac3..63ee33181bf4a66cf42a8be6df93c24bf924d2d9:/hier.c diff --git a/hier.c b/hier.c index 05a32cb..14e476a 100644 --- 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); }