diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-02-25 09:08:35 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-02-25 09:08:35 +0000 |
commit | f614763f8e8aa5c8515677c0a24f3c568b021d11 (patch) | |
tree | 78d5201b5783be9f48f807cd81ee628b2050cbbb /usr.sbin/smtpd/smtpd.c | |
parent | d89f06608b8a3ee8bb2b6eff46a1137f9e48a219 (diff) |
remove chown's called when running with user privs, ie. basically noops;
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r-- | usr.sbin/smtpd/smtpd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index b4082167cb3..dda320becfa 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.32 2009/02/23 00:51:32 chl Exp $ */ +/* $OpenBSD: smtpd.c,v 1.33 2009/02/25 09:08:34 jacekm Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -998,7 +998,6 @@ parent_maildir_init(struct passwd *pw, char *root) if (mkdir(pathname, 0700) == -1) if (errno != EEXIST) return 0; - chown(pathname, pw->pw_uid, pw->pw_gid); } return 1; @@ -1032,8 +1031,6 @@ parent_maildir_open(struct passwd *pw, struct batch *batchp, struct path *path) return -1; } - fchown(fd, pw->pw_uid, pw->pw_gid); - return fd; } |