summaryrefslogtreecommitdiffhomepage
path: root/patches
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2022-01-23 20:21:37 +0100
committerØrjan Malde <red@foxi.me>2022-01-23 20:21:37 +0100
commit14ec6f858cfe0aabdbf1b77da13d08c97637d36e (patch)
tree46a52fa2c5b5f93c80ac43d097d40cbb1155a06b /patches
parentbda6a79b827eb8fd7495900492bcee23fe63eb56 (diff)
downloadmidipix_build-14ec6f858cfe0aabdbf1b77da13d08c97637d36e.tar.bz2
midipix_build-14ec6f858cfe0aabdbf1b77da13d08c97637d36e.tar.xz
patches/tdnf-2.1.1.local.patch: new patch.
Signed-off-by: Ørjan Malde <red@foxi.me>
Diffstat (limited to 'patches')
-rw-r--r--patches/tdnf-2.1.1.local.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/patches/tdnf-2.1.1.local.patch b/patches/tdnf-2.1.1.local.patch
new file mode 100644
index 00000000..73d61b7b
--- /dev/null
+++ b/patches/tdnf-2.1.1.local.patch
@@ -0,0 +1,17 @@
+diff -ru tdnf-2.1.1.orig/tools/cli/main.c tdnf-2.1.1/tools/cli/main.c
+--- tdnf-2.1.1.orig/tools/cli/main.c 2020-05-29 19:28:42.000000000 +0200
++++ tdnf-2.1.1/tools/cli/main.c 2022-01-23 20:19:28.417829507 +0100
+@@ -66,11 +66,13 @@
+ //granular permissions for non root users are pending.
+ //blocking all operations for non root and show the
+ //right error to avoid confusion.
++#ifndef __midipix__
+ if(geteuid() != 0)
+ {
+ dwError = ERROR_TDNF_PERM;
+ BAIL_ON_CLI_ERROR(dwError);
+ }
++#endif
+
+ _context.pFnCheck = TDNFCliInvokeCheck;
+ _context.pFnCheckLocal = TDNFCliInvokeCheckLocal;