4f75cf25fd
```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 ```
13 lines
426 B
Diff
13 lines
426 B
Diff
diff --git src/readdir.cc src/readdir.cc
|
|
index 9b31232..94000bc 100644
|
|
--- a/src/readdir.cc
|
|
+++ b/src/readdir.cc
|
|
@@ -13,7 +13,7 @@ int tmfs_readdir(const char * path, void * buf, fuse_fill_dir_t filler_cb, off_t
|
|
struct stat stbuf;
|
|
|
|
// report ./ and ../
|
|
- stbuf.st_mode = __S_IFDIR | 0755;
|
|
+ stbuf.st_mode = S_IFDIR | 0755;
|
|
stbuf.st_nlink = 2;
|
|
filler_cb(buf, ".", &stbuf, 0);
|
|
filler_cb(buf, "..", &stbuf, 0);
|