diff options
-rw-r--r-- | include/limits.h | 1 | ||||
-rw-r--r-- | src/conf/fpathconf.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/include/limits.h b/include/limits.h index 9cb5426f..ab163a22 100644 --- a/include/limits.h +++ b/include/limits.h @@ -42,7 +42,6 @@ #define PIPE_BUF 4096 #define FILESIZEBITS 64 #define NAME_MAX 255 -#define SYMLINK_MAX 255 #define PATH_MAX 4096 #define NGROUPS_MAX 32 #define ARG_MAX 131072 diff --git a/src/conf/fpathconf.c b/src/conf/fpathconf.c index 8eb037e6..e6aca5cf 100644 --- a/src/conf/fpathconf.c +++ b/src/conf/fpathconf.c @@ -24,7 +24,7 @@ long fpathconf(int fd, int name) [_PC_REC_MIN_XFER_SIZE] = 4096, [_PC_REC_XFER_ALIGN] = 4096, [_PC_ALLOC_SIZE_MIN] = 4096, - [_PC_SYMLINK_MAX] = SYMLINK_MAX, + [_PC_SYMLINK_MAX] = -1, [_PC_2_SYMLINKS] = 1 }; if (name >= sizeof(values)/sizeof(values[0])) { |