Oops, I meant to use g_strcmp0 here.
This commit is contained in:
parent
ba9b9561d5
commit
4faf041b78
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.3 2011/05/22 17:30:00 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.4 2011/05/22 17:34:55 ajacoutot Exp $
|
||||
|
||||
COMMENT= D-Bus interface for user account query and manipulation
|
||||
|
||||
DISTNAME= accountsservice-0.6.12
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
REVISION= 1
|
||||
REVISION= 2
|
||||
|
||||
SHARED_LIBS += accountsservice 0.0 # 0.0
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-src_user_c,v 1.2 2011/05/22 17:30:00 ajacoutot Exp $
|
||||
$OpenBSD: patch-src_user_c,v 1.3 2011/05/22 17:34:55 ajacoutot Exp $
|
||||
--- src/user.c.orig Thu May 19 05:38:50 2011
|
||||
+++ src/user.c Sun May 22 19:26:22 2011
|
||||
+++ src/user.c Sun May 22 19:32:05 2011
|
||||
@@ -29,7 +29,11 @@
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
@ -49,7 +49,7 @@ $OpenBSD: patch-src_user_c,v 1.2 2011/05/22 17:30:00 ajacoutot Exp $
|
||||
+#endif
|
||||
|
||||
+#ifdef __OpenBSD__
|
||||
+ if (g_strrstr (user->shell, "/sbin/nologin") != 0) {
|
||||
+ if (g_strcmp0 (user->shell, "/sbin/nologin") == 0) {
|
||||
+ locked = TRUE;
|
||||
+ }
|
||||
+ else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user