accountsservice: more than compile being segfaulting. fixing.
This commit is contained in:
parent
da88438c16
commit
7e442d0453
|
@ -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);
|
||||
+
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue