[PATCH] open, path_resolution: specify PATH_MAX and ELOOP limits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 man2/open.2            |  4 ++--
 man7/path_resolution.7 | 13 ++++++++-----
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/man2/open.2 b/man2/open.2
index 5d0ce66d8..11fe4881e 100644
--- a/man2/open.2
+++ b/man2/open.2
@@ -1041,7 +1041,7 @@ but this kernel version does not provide the
 functionality.
 .TP
 .B ELOOP
-Too many symbolic links were encountered in resolving
+Too many (more than 40) symbolic links were encountered in resolving
 .IR pathname .
 .TP
 .B ELOOP
@@ -1062,7 +1062,7 @@ in
 .TP
 .B ENAMETOOLONG
 .I pathname
-was too long.
+was too long. (longer than 4096 bytes)
 .TP
 .B ENFILE
 The system-wide limit on the total number of open files has been reached.
diff --git a/man7/path_resolution.7 b/man7/path_resolution.7
index 07664ed8f..5120c1c92 100644
--- a/man7/path_resolution.7
+++ b/man7/path_resolution.7
@@ -170,12 +170,15 @@ will operate on the symlink, while
 .BR stat (2)
 operates on the file pointed to by the symlink.
 .SS Length limit
-There is a maximum length for pathnames.
-If the pathname (or some
-intermediate pathname obtained while resolving symbolic links)
-is too long, an
+There is a maximum length for pathnames. (4096 bytes)
+If the pathname is too long, an
 .B ENAMETOOLONG
-error is returned ("Filename too long").
+error is returned ("File name too long")
+..SS Indirection Limit
+There is a maximum length for symlinks that will be dereferenced, (40)
+at which point
+.B ELOOP
+will be returned ("Too many symbolic links encountered").
 .SS Empty pathname
 In the original UNIX, the empty pathname referred to the current directory.
 Nowadays POSIX decrees that an empty pathname must not be resolved
-- 
2.17.1




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux