summaryrefslogtreecommitdiff
path: root/editors/AbiWord2/files/patch-src::af::util::unix::ut_files.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editors/AbiWord2/files/patch-src::af::util::unix::ut_files.cpp')
-rw-r--r--editors/AbiWord2/files/patch-src::af::util::unix::ut_files.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/editors/AbiWord2/files/patch-src::af::util::unix::ut_files.cpp b/editors/AbiWord2/files/patch-src::af::util::unix::ut_files.cpp
new file mode 100644
index 000000000000..d17128bab3f1
--- /dev/null
+++ b/editors/AbiWord2/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;
+ }