accountsservice: more than compile being segfaulting. fixing.

This commit is contained in:
Enno Boland 2018-03-26 13:34:14 +02:00
parent da88438c16
commit 7e442d0453
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@ diff --git a/src/daemon.c b/src/daemon.c
index 312394a..e7b3c58 100644
--- src/daemon.c
+++ src/daemon.c
@@ -140,6 +140,26 @@ error_get_type (void)
@@ -140,6 +140,28 @@ error_get_type (void)
#define MAX_LOCAL_USERS 50
#endif
@ -12,6 +12,8 @@ index 312394a..e7b3c58 100644
+ */
+static int fgetspent_r(FILE *fp, struct spwd *spbuf, char *buf, size_t buflen, struct spwd **spbufp) {
+ struct spwd *shadow_entry = fgetspent(fp);
+ if(!shadow_entry)
+ return -1;
+ size_t namplen = strlen(shadow_entry->sp_namp);
+ size_t pwdplen = strlen(shadow_entry->sp_pwdp);
+

View File

@ -1,7 +1,7 @@
# Template file for 'accountsservice'
pkgname=accountsservice
version=0.6.45
revision=2
revision=3
build_style=gnu-configure
configure_args="--disable-static --disable-systemd $(vopt_enable gir introspection)
ac_cv_file__etc_redhat_release=no ac_cv_file__etc_debian_version=no"