getpwnam -> getpwnam_shadow
This commit is contained in:
parent
d17072769f
commit
51e7f70040
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.62 2015/08/15 11:13:42 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.63 2015/11/19 10:07:45 ajacoutot Exp $
|
||||
|
||||
# XXX fix change password (gnome-cc run-passwd.c: argv[0])
|
||||
|
||||
@ -6,7 +6,7 @@ COMMENT= D-Bus interface for user account query and manipulation
|
||||
|
||||
DISTNAME= accountsservice-0.6.40
|
||||
EXTRACT_SUFX= .tar.xz
|
||||
REVISION= 1
|
||||
REVISION= 2
|
||||
|
||||
SHARED_LIBS += accountsservice 0.0 # 0.0
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
$OpenBSD: patch-src_user_c,v 1.27 2014/03/30 12:50:52 ajacoutot Exp $
|
||||
$OpenBSD: patch-src_user_c,v 1.28 2015/11/19 10:07:45 ajacoutot Exp $
|
||||
--- src/user.c.orig Thu Mar 20 19:16:44 2014
|
||||
+++ src/user.c Sun Mar 30 14:47:24 2014
|
||||
@@ -123,7 +123,12 @@ account_type_from_pwent (struct passwd *pwent)
|
||||
@ -57,7 +57,7 @@ $OpenBSD: patch-src_user_c,v 1.27 2014/03/30 12:50:52 ajacoutot Exp $
|
||||
#endif
|
||||
|
||||
+#ifdef __OpenBSD__
|
||||
+ pw = getpwnam (pwent->pw_name);
|
||||
+ pw = getpwnam_shadow (pwent->pw_name);
|
||||
+ if (pw)
|
||||
+ passwd = pw->pw_passwd;
|
||||
+ if (g_strcmp0(passwd, "skey") == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user