diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2012-01-12 12:52:12 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2012-01-12 12:52:12 +0000 |
commit | d87586d8bfd7e9393fee4a19cb4266902c443e26 (patch) | |
tree | eb2796aa2df67e60ea9bb797888ee9ce08b2f4c7 /usr.sbin/smtpd/smtpd.c | |
parent | 7eba8990714acaf5cb2935ca6a5dac759ce3c70f (diff) |
use absolute path as fts may chdir() during traversal.
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r-- | usr.sbin/smtpd/smtpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index 91b5e0aeca9..298638750fa 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.144 2012/01/11 17:46:36 eric Exp $ */ +/* $OpenBSD: smtpd.c,v 1.145 2012/01/12 12:52:11 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -742,7 +742,7 @@ purge_task(int fd, short ev, void *arg) setresgid(gid, gid, gid) || setresuid(uid, uid, uid)) fatal("smtpd: cannot drop privileges"); - rmtree(".", 1); + rmtree("/", 1); _exit(0); break; default: |