From 15d6ae10ad35cb3b65d2686ebe8d400f963c2e81 Mon Sep 17 00:00:00 2001 From: Josef Karthauser Date: Sun, 17 Dec 2000 17:07:40 +0000 Subject: [PATCH] Avoid potential problems with the existance of a shadow obj directory confusing the 'make -f tmpfile' in the tmpfile, by creating it in /tmp. --- usr.sbin/crunch/crunchgen/crunchgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/crunch/crunchgen/crunchgen.c b/usr.sbin/crunch/crunchgen/crunchgen.c index 1cf62da10663..c87dffeb22a9 100644 --- a/usr.sbin/crunch/crunchgen/crunchgen.c +++ b/usr.sbin/crunch/crunchgen/crunchgen.c @@ -172,7 +172,7 @@ int main(int argc, char **argv) if(!*execfname) snprintf(execfname, sizeof(execfname), "%s", confname); snprintf(cachename, sizeof(cachename), "%s.cache", confname); - snprintf(tempfname, sizeof(tempfname), ".tmp_%sXXXXXX", confname); + snprintf(tempfname, sizeof(tempfname), "/tmp/crunchgen_%sXXXXXX", confname); parse_conf_file(); if (list_mode)