mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-25 13:15:12 +02:00
accountsservice: more than compile being segfaulting. fixing.
This commit is contained in:
parent
da88438c16
commit
7e442d0453
2 changed files with 4 additions and 2 deletions
|
@ -2,7 +2,7 @@ diff --git a/src/daemon.c b/src/daemon.c
|
||||||
index 312394a..e7b3c58 100644
|
index 312394a..e7b3c58 100644
|
||||||
--- src/daemon.c
|
--- src/daemon.c
|
||||||
+++ 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
|
#define MAX_LOCAL_USERS 50
|
||||||
#endif
|
#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) {
|
+static int fgetspent_r(FILE *fp, struct spwd *spbuf, char *buf, size_t buflen, struct spwd **spbufp) {
|
||||||
+ struct spwd *shadow_entry = fgetspent(fp);
|
+ struct spwd *shadow_entry = fgetspent(fp);
|
||||||
|
+ if(!shadow_entry)
|
||||||
|
+ return -1;
|
||||||
+ size_t namplen = strlen(shadow_entry->sp_namp);
|
+ size_t namplen = strlen(shadow_entry->sp_namp);
|
||||||
+ size_t pwdplen = strlen(shadow_entry->sp_pwdp);
|
+ size_t pwdplen = strlen(shadow_entry->sp_pwdp);
|
||||||
+
|
+
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'accountsservice'
|
# Template file for 'accountsservice'
|
||||||
pkgname=accountsservice
|
pkgname=accountsservice
|
||||||
version=0.6.45
|
version=0.6.45
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --disable-systemd $(vopt_enable gir introspection)
|
configure_args="--disable-static --disable-systemd $(vopt_enable gir introspection)
|
||||||
ac_cv_file__etc_redhat_release=no ac_cv_file__etc_debian_version=no"
|
ac_cv_file__etc_redhat_release=no ac_cv_file__etc_debian_version=no"
|
||||||
|
|
Loading…
Add table
Reference in a new issue