ab657da15b
Functionality is not tested.
22 lines
721 B
Text
22 lines
721 B
Text
$NetBSD: patch-az,v 1.3 2014/07/18 10:40:28 ryoon Exp $
|
|
|
|
--- src/tmail/tmail.c.orig 2011-07-23 00:19:58.000000000 +0000
|
|
+++ src/tmail/tmail.c
|
|
@@ -29,7 +29,6 @@
|
|
#include <stdio.h>
|
|
#include <pwd.h>
|
|
#include <errno.h>
|
|
-extern int errno; /* just in case */
|
|
#include <sysexits.h>
|
|
#include <sys/file.h>
|
|
#include <sys/stat.h>
|
|
@@ -559,7 +558,9 @@ int delivery_unsafe (char *path,uid_t ui
|
|
case S_IFCHR: strcat (tmp,"character special"); break;
|
|
case S_IFBLK: strcat (tmp,"block special"); break;
|
|
case S_IFLNK: strcat (tmp,"symbolic link"); break;
|
|
+#if defined(S_IFSOCK)
|
|
case S_IFSOCK: strcat (tmp,"socket"); break;
|
|
+#endif
|
|
default:
|
|
sprintf (tmp + strlen (tmp),"file type %07o",(unsigned int) type);
|
|
}
|