SOURCES: fpc-skip-dev-dot.patch (NEW) - don't scan dot-dirs in /de...

baggins baggins at pld-linux.org
Fri Oct 13 19:09:10 CEST 2006


Author: baggins                      Date: Fri Oct 13 17:09:10 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- don't scan dot-dirs in /dev (barfs on .udev)

---- Files affected:
SOURCES:
   fpc-skip-dev-dot.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/fpc-skip-dev-dot.patch
diff -u /dev/null SOURCES/fpc-skip-dev-dot.patch:1.1
--- /dev/null	Fri Oct 13 19:09:10 2006
+++ SOURCES/fpc-skip-dev-dot.patch	Fri Oct 13 19:09:04 2006
@@ -0,0 +1,12 @@
+--- fpc/rtl/unix/ttyname.inc~	2005-02-14 18:13:31.000000000 +0100
++++ fpc/rtl/unix/ttyname.inc	2006-10-13 18:56:54.686466592 +0200
+@@ -44,8 +44,7 @@
+        if fpstat(name,st)=0 then
+         begin
+           if (fpS_ISDIR(st.st_mode)) and  { if it is a directory }
+-             (strpas(@(d^.d_name))<>'.') and    { but not ., .. and fd subdirs }
+-             (strpas(@(d^.d_name))<>'..') and
++             (strpas(@(d^.d_name))[1]<>'.') and { but not ., .. and fd subdirs }
+              (strpas(@(d^.d_name))<>'') and
+              (strpas(@(d^.d_name))<>'fd') then
+            begin                      {we found a directory, search inside it}
================================================================


More information about the pld-cvs-commit mailing list