Cygwin 3.7: Increase SYMLOOP_MAX?
Sebastian Feld
sebastian.n.feld@gmail.com
Thu Jun 5 09:28:04 GMT 2025
On Thu, Apr 10, 2025 at 8:14 PM Sebastian Feld
<sebastian.n.feld@gmail.com> wrote:
>
> Could the maximum symlink depth in Cygwin please be increased for
> cygwin 3.7? We're regularly hitting that limit (seems to be 10).
>
> What is the maximum number of symlink recursion? Rumor is that this is
> 32, but I cannot find it in any windows header.
This would be my proposed patch:
---cut---cut---cut---
diff --git a/winsup/cygwin/include/cygwin/limits.h
b/winsup/cygwin/include/cygwin/limits.h
index 204154da9..c61466368 100644
--- a/winsup/cygwin/include/cygwin/limits.h
+++ b/winsup/cygwin/include/cygwin/limits.h
@@ -43,7 +43,13 @@ details. */
#define __SEM_VALUE_MAX 1147483648
#define __SIGQUEUE_MAX 1024
#define __STREAM_MAX 20
-#define __SYMLOOP_MAX 10
+/* __SYMLOOP_MAX
+ https://learn.microsoft.com/en-us/windows/win32/fileio/reparse-points
+ ... There is a limit of 63 reparse points on any given path.
+ NOTE: The limit can be reduced depending on the length of the
+ reparse point. For example, if your reparse point targets a fully
+ qualified path, the limit becomes 31. */
+#define __SYMLOOP_MAX 31
#define __TIMER_MAX 32
#define __TTY_NAME_MAX 32
#define __FILESIZEBITS 64
---cut---cut---cut---
How can I get this patch committed?
Sebi
--
Sebastian Feld - IT security consultant
More information about the Cygwin
mailing list