diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2012-08-27 11:59:39 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2012-08-27 11:59:39 +0000 |
commit | b4096692f7d215506aa52ac748b266d7d54cda25 (patch) | |
tree | d42b0caa4e8ab1dd9c0d0003b10fa622ba1c058b /usr.sbin | |
parent | f9ea497f3f73a0ed0c6b3f79b8eb9750b2f82532 (diff) |
don't call ckdir() on each mktmpfile() call.
ok gilles@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/util.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c index 05b2050c8da..07979644c4d 100644 --- a/usr.sbin/smtpd/util.c +++ b/usr.sbin/smtpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.74 2012/08/26 11:52:48 gilles Exp $ */ +/* $OpenBSD: util.c,v 1.75 2012/08/27 11:59:38 chl Exp $ */ /* * Copyright (c) 2000,2001 Markus Friedl. All rights reserved. @@ -336,9 +336,6 @@ mktmpfile(void) char path[MAXPATHLEN]; int fd; - if (ckdir(PATH_TEMPORARY, 0700, env->sc_pw->pw_uid, 0, 0) == 0) - errx(1, "error in %s directory setup", PATH_TEMPORARY); - if (! bsnprintf(path, sizeof(path), "%s/smtpd.XXXXXXXXXX", PATH_TEMPORARY)) err(1, "snprintf"); |