635e9da391
* par is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
18 lines
583 B
Diff
18 lines
583 B
Diff
ALLPERMS isn't specified in POSIX so musl doesn't define it
|
|
|
|
diff --git a/src/FileInfo.cpp b/src/FileInfo.cpp
|
|
index 5cc198c..197d40c 100644
|
|
--- a/src/FileInfo.cpp
|
|
+++ b/src/FileInfo.cpp
|
|
@@ -24,6 +24,10 @@
|
|
#include "Logger.h"
|
|
#include "Exception.h"
|
|
|
|
+#ifndef ALLPERMS
|
|
+# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
|
|
+#endif
|
|
+
|
|
// Some filesystems (NTFS seems to be among them) may handle block fragments
|
|
// well. Don't report files as "sparse" files if the block size is only a few
|
|
// bytes less than the byte size - it may be due to intelligent fragment
|
|
|