timewarrior: amend patch to greatly simplify

This commit is contained in:
Toyam Cox 2016-11-14 22:38:17 -05:00
parent e70753b5e0
commit 9f7d4cc3cf
1 changed files with 10 additions and 12 deletions

View File

@ -1,13 +1,11 @@
--- src/libshared/src/FS.cpp.old 2016-11-14 18:06:06.269639871 -0500 --- src/libshared/src/FS.cpp.old 2016-11-14 22:25:30.714769358 -0500
+++ src/libshared/src/FS.cpp 2016-11-14 18:11:33.523550960 -0500 +++ src/libshared/src/FS.cpp 2016-11-14 22:36:37.692633243 -0500
@@ -905,8 +905,8 @@ @@ -41,7 +41,7 @@
free (buf); #include <shared.h>
return result; #include <format.h>
#else
- char buf[PATH_MAX]; -#if defined SOLARIS || defined NETBSD || defined FREEBSD
- getcwd (buf, PATH_MAX - 1); +#ifndef __GLIBC__
+ char buf[FILENAME_MAX]; #include <limits.h>
+ getcwd (buf, FILENAME_MAX - 1);
return std::string (buf);
#endif #endif
}