fix bug in writable (directory writable wasn't enough); extra
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Sun, 5 Dec 1993 00:06:49 +0000 (16:06 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Sun, 5 Dec 1993 00:06:49 +0000 (16:06 -0800)
debug info

SCCS-vsn: usr.sbin/sendmail/src/recipient.c 8.26

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

index bd4eabd..6b1ac8c 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)recipient.c        8.25 (Berkeley) %G%";
+static char sccsid[] = "@(#)recipient.c        8.26 (Berkeley) %G%";
 #endif /* not lint */
 
 # include "sendmail.h"
 #endif /* not lint */
 
 # include "sendmail.h"
@@ -653,6 +653,7 @@ writable(filename)
                        return FALSE;
                }
                *p = '/';
                        return FALSE;
                }
                *p = '/';
+               return TRUE;
        }
 
        /*
        }
 
        /*
@@ -660,7 +661,11 @@ writable(filename)
        */
 
        if (bitset(0111, stb.st_mode))
        */
 
        if (bitset(0111, stb.st_mode))
+       {
+               if (tTd(29, 5))
+                       printf("failed (mode %o: x bits)\n", stb.st_mode);
                return (FALSE);
                return (FALSE);
+       }
 
        euid = RealUid;
        uname = RealUserName;
 
        euid = RealUid;
        uname = RealUserName;