summarylogtreecommitdiffstats
path: root/no-uid-stuff-on.mingw32.patch
diff options
context:
space:
mode:
authorSebastian Morr2015-06-24 22:33:37 +0200
committerSebastian Morr2015-06-24 22:33:37 +0200
commit36e6133998481f57248d1f72f0c779e1990938c1 (patch)
tree2013269710e8ed39be8e0f79dda5c9b13da98924 /no-uid-stuff-on.mingw32.patch
downloadaur-36e6133998481f57248d1f72f0c779e1990938c1.tar.gz
Initial commit
Diffstat (limited to 'no-uid-stuff-on.mingw32.patch')
-rw-r--r--no-uid-stuff-on.mingw32.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/no-uid-stuff-on.mingw32.patch b/no-uid-stuff-on.mingw32.patch
new file mode 100644
index 000000000000..7bbb6f9f713b
--- /dev/null
+++ b/no-uid-stuff-on.mingw32.patch
@@ -0,0 +1,25 @@
+--- popt-1.16/poptconfig.c.orig 2009-05-20 17:18:07 +0400
++++ popt-1.16/poptconfig.c 2012-03-31 08:50:54 +0400
+@@ -141,17 +141,17 @@
+ int poptSaneFile(const char * fn)
+ {
+ struct stat sb;
+- uid_t uid = getuid();
++/* uid_t uid = getuid();*/
+
+ if (stat(fn, &sb) == -1)
+ return 1;
+- if ((uid_t)sb.st_uid != uid)
+- return 0;
++/* if ((uid_t)sb.st_uid != uid)
++ return 0;*/
+ if (!S_ISREG(sb.st_mode))
+ return 0;
+ /*@-bitwisesigned@*/
+- if (sb.st_mode & (S_IWGRP|S_IWOTH))
+- return 0;
++/* if (sb.st_mode & (S_IWGRP|S_IWOTH))
++ return 0;*/
+ /*@=bitwisesigned@*/
+ return 1;
+ }