void-packages/srcpkgs/9mount/patches/fix-trans-fd.patch
Đoàn Trần Công Danh 75403cef76 srcpkgs/[0-9]*: 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

21 lines
591 B
Diff

# HG changeset patch
# User Michael Gehring <mg@ebfe.org>
# Date 1476753775 -28800
# Node ID 4228419b479173cbad52532e91c423f2b263d73b
# Parent c6da9cac8d01ae89f50abb9f1a3dbc87ffa1ad38
Fix trans=fd mount options
diff -r c6da9cac8d01 -r 4228419b4791 9mount.c
--- a/9mount.c Thu Apr 10 19:43:27 2014 +0800
+++ b/9mount.c Tue Oct 18 09:22:55 2016 +0800
@@ -165,7 +165,7 @@
if (strcmp(dial, "-") == 0) {
proto = "fd";
addr = "nodev";
- append(&opts, "rfdno=0,wrfdno=1", &optlen);
+ append(&opts, "rfdno=0,wfdno=1", &optlen);
} else {
parsedial(dial, &proto, &addr, &port);
}