diff options
author | Sebastian Morr | 2015-06-24 22:33:37 +0200 |
---|---|---|
committer | Sebastian Morr | 2015-06-24 22:33:37 +0200 |
commit | 36e6133998481f57248d1f72f0c779e1990938c1 (patch) | |
tree | 2013269710e8ed39be8e0f79dda5c9b13da98924 /no-uid-stuff-on.mingw32.patch | |
download | aur-36e6133998481f57248d1f72f0c779e1990938c1.tar.gz |
Initial commit
Diffstat (limited to 'no-uid-stuff-on.mingw32.patch')
-rw-r--r-- | no-uid-stuff-on.mingw32.patch | 25 |
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; + } |