Просмотр исходного кода

plugins/netutils.h - UNIX_MAX_PATH changes

BSDs have hardcoded 104 byte max paths, while slightly limitting this should not pose issues for other flavors of unix\linux
Spenser Reinhardt 11 лет назад
Родитель
Сommit
7afaaf76c6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      plugins/netutils.h

+ 1 - 1
plugins/netutils.h

@@ -41,7 +41,7 @@
 # include <sys/un.h>
 # include <sys/un.h>
 # ifndef UNIX_PATH_MAX
 # ifndef UNIX_PATH_MAX
    /* linux uses this, on sun it's hard-coded at 108 without a define */
    /* linux uses this, on sun it's hard-coded at 108 without a define */
-#  define UNIX_PATH_MAX 108
+#  define UNIX_PATH_MAX 104
 # endif /* UNIX_PATH_MAX */
 # endif /* UNIX_PATH_MAX */
 #endif /* HAVE_SYS_UN_H */
 #endif /* HAVE_SYS_UN_H */