]> Lady’s Gitweb - Shushe/commitdiff
Do not follow symbolic links with `find`
authorLady <redacted>
Thu, 11 Jan 2024 01:19:32 +0000 (20:19 -0500)
committerLady <redacted>
Thu, 11 Jan 2024 01:19:32 +0000 (20:19 -0500)
⛩️📰 书社 expects that source files exist within `SRCDIR` and includes
exist within `INCLUDEDIR`. Following symlinks can break this
assumption. Other commands should follow symlinks by default, so there
shouldn’t be any need to resolve them this early in the process.

GNUmakefile
README.markdown

index 9ae7a921aa2c3522cbe2ecce93b1ea4881d4fa49..a6741782f2a6b3114bd6f705b382f352703728f3 100644 (file)
@@ -134,10 +134,10 @@ MAGICDIR := $(patsubst ./%,%,$(THISDIR)/magic)
 
 # Configuration of `find´.
 #
-# By default, `find´ will follow symlinks and use extended regular
-# expressions, ignoring hidden files and those which begin with a
-# period.
-FINDOPTS := -LE
+# By default, `find´ will not follow symlinks and will use extended
+# regular expressions, ignoring hidden files and those which begin with
+# period.
+FINDOPTS := -PE
 FINDRULES := -flags -nohidden -and -not -name '.*'
 
 # The list of parsers for plaintext file types.
index 28b8b4684366a80c55be6a9ff55065dd640b9ed5..6bfa987de70458ca7886a79a146b0982858580bd 100644 (file)
@@ -152,7 +152,7 @@ The following additional variables can be used to control the behaviour
 
 - **`FINDOPTS`:**
   Options to pass to `find` when searching for source files (default:
-    `-LE`).
+    `-PE`).
 
 - **`FINDRULES`:**
   Rules to use with `find` when searching for source files (default:
This page took 0.087333 seconds and 4 git commands to generate.