summaryrefslogtreecommitdiffstats
path: root/sysutils/accountsservice/files/patch-src_daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/accountsservice/files/patch-src_daemon.c')
-rw-r--r--sysutils/accountsservice/files/patch-src_daemon.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/sysutils/accountsservice/files/patch-src_daemon.c b/sysutils/accountsservice/files/patch-src_daemon.c
index c1955e4f0..f211d4d46 100644
--- a/sysutils/accountsservice/files/patch-src_daemon.c
+++ b/sysutils/accountsservice/files/patch-src_daemon.c
@@ -1,14 +1,5 @@
--- src/daemon.c.orig 2012-08-16 19:03:51.000000000 +0000
-+++ src/daemon.c 2012-09-19 21:48:15.000000000 +0000
-@@ -49,7 +49,7 @@
- #define PATH_SHADOW "/etc/shadow"
- #define PATH_NOLOGIN "/sbin/nologin"
- #define PATH_FALSE "/bin/false"
--#define PATH_GDM_CUSTOM "/etc/gdm/custom.conf"
-+#define PATH_GDM_CUSTOM "/usr/local/etc/gdm/custom.conf"
-
- static const char *default_excludes[] = {
- "bin",
++++ src/daemon.c 2012-09-19 22:31:43.000000000 +0000
@@ -68,6 +68,7 @@
"nobody4",
"noaccess",
@@ -25,13 +16,14 @@
NULL
};
-@@ -304,7 +306,11 @@
+@@ -304,7 +306,12 @@
/* Every iteration */
fp = *state;
+#ifdef HAVE_FGETPWENT
pwent = fgetpwent (fp);
+#else
++ setpwent();
+ pwent = getpwent ();
+#endif
if (pwent != NULL) {