diff options
Diffstat (limited to 'editors/abiword/files/patch-src::af::util::unix::ut_files.cpp')
-rw-r--r-- | editors/abiword/files/patch-src::af::util::unix::ut_files.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/editors/abiword/files/patch-src::af::util::unix::ut_files.cpp b/editors/abiword/files/patch-src::af::util::unix::ut_files.cpp new file mode 100644 index 0000000..d17128b --- /dev/null +++ b/editors/abiword/files/patch-src::af::util::unix::ut_files.cpp @@ -0,0 +1,23 @@ + +$FreeBSD$ + +--- src/af/util/unix/ut_files.cpp.orig Mon Apr 16 02:25:35 2001 ++++ src/af/util/unix/ut_files.cpp Thu Aug 16 14:55:28 2001 +@@ -45,7 +45,7 @@ + if(*progName == '/') + { + laststat = stat(progName, &statbuf); +- if(S_ISREG(statbuf.st_mode) || S_ISLNK(statbuf.st_mode)) ++ if(laststat == 0 && (S_ISREG(statbuf.st_mode) || S_ISLNK(statbuf.st_mode))) + { + return true; + } +@@ -67,7 +67,7 @@ + path = (UT_String*) utvPath->getNthItem(i);; + laststat = stat(UT_catPathname(path->c_str(), progName), &statbuf); + +- if(S_ISREG(statbuf.st_mode) || S_ISLNK(statbuf.st_mode)) ++ if(laststat == 0 && (S_ISREG(statbuf.st_mode) || S_ISLNK(statbuf.st_mode))) + { + return true; + } |