[ovs-dev] [PATCH] util: Maximum path length for Windows.
Gurucharan Shetty
shettyg at nicira.com
Mon Mar 10 17:56:37 UTC 2014
Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
---
lib/util.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/util.c b/lib/util.c
index bbca262..3f9a2e2 100644
--- a/lib/util.c
+++ b/lib/util.c
@@ -646,7 +646,11 @@ get_cwd(void)
size_t size;
/* Get maximum path length or at least a reasonable estimate. */
+#ifndef _WIN32
path_max = pathconf(".", _PC_PATH_MAX);
+#else
+ path_max = MAX_PATH;
+#endif
size = (path_max < 0 ? 1024
: path_max > 10240 ? 10240
: path_max);
--
1.7.9.5
More information about the dev
mailing list