blob: 7bbb6f9f713b6418e4519757938b5e1f40b62eca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
}
|