fix bug in new writable implementation -- can't return safefile directly
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Fri, 3 Dec 1993 00:15:19 +0000 (16:15 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Fri, 3 Dec 1993 00:15:19 +0000 (16:15 -0800)
SCCS-vsn: usr.sbin/sendmail/src/recipient.c 8.25

usr/src/usr.sbin/sendmail/src/recipient.c

index f71cd23..bd4eabd 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)recipient.c        8.24 (Berkeley) %G%";
+static char sccsid[] = "@(#)recipient.c        8.25 (Berkeley) %G%";
 #endif /* not lint */
 
 # include "sendmail.h"
 #endif /* not lint */
 
 # include "sendmail.h"
@@ -687,7 +687,7 @@ writable(filename)
                printf("\teu/gid=%d/%d, st_u/gid=%d/%d\n",
                        euid, egid, stb.st_uid, stb.st_gid);
 
                printf("\teu/gid=%d/%d, st_u/gid=%d/%d\n",
                        euid, egid, stb.st_uid, stb.st_gid);
 
-       return safefile(filename, euid, egid, uname, SF_NOSLINK, S_IWRITE);
+       return safefile(filename, euid, egid, uname, SF_NOSLINK, S_IWRITE) == 0;
 }
 \f/*
 **  INCLUDE -- handle :include: specification.
 }
 \f/*
 **  INCLUDE -- handle :include: specification.