summaryrefslogtreecommitdiffhomepage
path: root/patches
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2024-01-01 18:52:05 +0100
committerØrjan Malde <red@foxi.me>2024-01-01 18:52:05 +0100
commit39cd9d4b3230831740b95a8d9d42a30e87322898 (patch)
treef456d8eaeaa2e7c3479c6b671e688ad23853fd81 /patches
parentfe0f0ac692df02b6243ea5c9f42052630fa22c73 (diff)
downloadmidipix_build-39cd9d4b3230831740b95a8d9d42a30e87322898.tar.bz2
midipix_build-39cd9d4b3230831740b95a8d9d42a30e87322898.tar.xz
patches/patch/no-ownership-hack.patch: new patch.
Signed-off-by: Ørjan Malde <red@foxi.me>
Diffstat (limited to 'patches')
-rw-r--r--patches/patch/no-ownership-hack.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/patch/no-ownership-hack.patch b/patches/patch/no-ownership-hack.patch
new file mode 100644
index 00000000..0d74cdd2
--- /dev/null
+++ b/patches/patch/no-ownership-hack.patch
@@ -0,0 +1,19 @@
+diff -ru patch-2.7.6.orig/src/util.c patch-2.7.6/src/util.c
+--- patch-2.7.6.orig/src/util.c 2018-02-03 13:41:49.000000000 +0100
++++ patch-2.7.6/src/util.c 2024-01-01 18:44:53.339218111 +0100
+@@ -269,6 +269,7 @@
+ uid = (euid == st->st_uid) ? -1 : st->st_uid;
+ gid = (egid == st->st_gid) ? -1 : st->st_gid;
+
++#ifndef __midipix__
+ /* May fail if we are not privileged to set the file owner, or we are
+ not in group instat.st_gid. Ignore those errors. */
+ if ((uid != -1 || gid != -1)
+@@ -281,6 +282,7 @@
+ (uid == -1) ? "owner" : "owning group",
+ S_ISLNK (mode) ? "symbolic link" : "file",
+ quotearg (to));
++#endif
+ }
+ if (attr & FA_XATTRS)
+ if (copy_attr (from, to) != 0