void-packages/srcpkgs/vsftpd/patches/009-i686-musl.patch
Đoàn Trần Công Danh 76acfa2dd2 srcpkgs/v*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

15 lines
393 B
Diff

--- a/ptracesandbox.c 2018-04-25 10:43:45.885676254 +0200
+++ b/ptracesandbox.c 2018-04-25 10:44:23.021677437 +0200
@@ -854,8 +854,12 @@
arg2 != F_SETOWN &&
arg2 != F_SETLK &&
arg2 != F_SETLKW &&
+#if defined(F_SETLK64)
arg2 != F_SETLK64 &&
+#endif
+#if defined(F_SETLK64)
arg2 != F_SETLKW64 &&
+#endif
arg2 != F_SETFD &&
arg2 != F_GETFD)
{