From 7e442d0453df9bf5378bf98739171f4d274aab14 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 26 Mar 2018 13:34:14 +0200 Subject: [PATCH] accountsservice: more than compile being segfaulting. fixing. --- srcpkgs/accountsservice/patches/musl-fgetspent_r.patch | 4 +++- srcpkgs/accountsservice/template | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch b/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch index 57ea3343846..da1b68f93aa 100644 --- a/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch +++ b/srcpkgs/accountsservice/patches/musl-fgetspent_r.patch @@ -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); + diff --git a/srcpkgs/accountsservice/template b/srcpkgs/accountsservice/template index 02bf2b70d16..f41f673b77b 100644 --- a/srcpkgs/accountsservice/template +++ b/srcpkgs/accountsservice/template @@ -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"