From: deraadt Date: Fri, 9 Oct 2015 17:07:21 +0000 (+0000) Subject: remove NFS spool support; it stands in the way of pledge(2) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3f24149249ef3c1f20ed02f30e1d366b8ca06fbf;p=openbsd remove NFS spool support; it stands in the way of pledge(2) --- diff --git a/libexec/comsat/comsat.c b/libexec/comsat/comsat.c index d83b18b6432..af26c73000c 100644 --- a/libexec/comsat/comsat.c +++ b/libexec/comsat/comsat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: comsat.c,v 1.40 2015/07/06 15:42:20 millert Exp $ */ +/* $OpenBSD: comsat.c,v 1.41 2015/10/09 17:07:21 deraadt Exp $ */ /* * Copyright (c) 1980, 1993 @@ -275,15 +275,8 @@ jkfprintf(FILE *tp, char name[], off_t offset) char visout[5], *s2; FILE *fi; int linecnt, charcnt, inheader; - struct passwd *p; char line[BUFSIZ]; - /* Set effective uid to user in case mail drop is on nfs */ - if ((p = getpwnam(name)) != NULL) { - (void) seteuid(p->pw_uid); - (void) setuid(p->pw_uid); - } - if ((fi = fopen(name, "r")) == NULL) return;