Oops, I meant to use g_strcmp0 here.

This commit is contained in:
ajacoutot 2011-05-22 17:34:55 +00:00
parent ba9b9561d5
commit 4faf041b78
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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 {