summaryrefslogtreecommitdiff
blob: eec6624eedc2a1aacf38d890e396e072c18654dd (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
26
27
28
29
30
31
32
33
34
35
36
37
38
--- a/cache.c
+++ b/cache.c
@@ -195,7 +195,7 @@
 	 * No entry for this uid, we will add it
 	 */
 	if (!pwopn) {
-#if defined(__GLIBC__)
+#if defined(__GLIBC__) || defined(__linux__)
 		setpwent();
 #elif !defined(__INTERIX)
 		setpassent(1);
@@ -265,7 +265,7 @@
 	 * No entry for this gid, we will add it
 	 */
 	if (!gropn) {
-#if defined(__GLIBC__)
+#if defined(__GLIBC__) || defined(__linux__)
 		setgrent();
 #elif !defined(__INTERIX) && !defined(__CYGWIN__)
 		setgroupent(1);
@@ -336,7 +336,7 @@
 	}
 
 	if (!pwopn) {
-#if defined(__GLIBC__)
+#if defined(__GLIBC__) || defined(__linux__)
 		setpwent();
 #elif !defined(__INTERIX)
 		setpassent(1);
@@ -403,7 +403,7 @@
 	}
 
 	if (!gropn) {
-#if defined(__GLIBC__)
+#if defined(__GLIBC__) || defined(__linux__)
 		setgrent();
 #elif !defined(__INTERIX) && !defined(__CYGWIN__)
 		setgroupent(1);