pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/x11/mate-session-manager
Module Name: pkgsrc
Committed By: gutteridge
Date: Thu Mar 7 01:26:46 UTC 2019
Modified Files:
pkgsrc/x11/mate-session-manager: distinfo
pkgsrc/x11/mate-session-manager/patches:
patch-mate-session_gsm-systemd.c
Log Message:
mate-session-manager: simplify patch (NFCI)
I misconstrued a detail about systemd handling code elsewhere in the
file by over-thinking things, and introduced some redundancies here.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/x11/mate-session-manager/distinfo
cvs rdiff -u -r1.2 -r1.3 \
pkgsrc/x11/mate-session-manager/patches/patch-mate-session_gsm-systemd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/x11/mate-session-manager/distinfo
diff -u pkgsrc/x11/mate-session-manager/distinfo:1.6 pkgsrc/x11/mate-session-manager/distinfo:1.7
--- pkgsrc/x11/mate-session-manager/distinfo:1.6 Wed Mar 6 08:14:33 2019
+++ pkgsrc/x11/mate-session-manager/distinfo Thu Mar 7 01:26:46 2019
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.6 2019/03/06 08:14:33 gutteridge Exp $
+$NetBSD: distinfo,v 1.7 2019/03/07 01:26:46 gutteridge Exp $
SHA1 (mate-session-manager-1.22.0.tar.xz) = f23b6cd78b5aa81052e10dde3e9504089a34278f
RMD160 (mate-session-manager-1.22.0.tar.xz) = 1fbd9219b1da23f0117c80d1e483b64274ec5c00
SHA512 (mate-session-manager-1.22.0.tar.xz) = 7e5e21e37c7ac55ca7d71302edef9aabeccf39233aec9edfe93a2fdcd4150d039e8121adecebb3d0a4a707eccef0c7afa1b54c5b52b57853242964c7506eeb9a
Size (mate-session-manager-1.22.0.tar.xz) = 603016 bytes
-SHA1 (patch-mate-session_gsm-systemd.c) = 087b0d7de9b8f23ec0876d3c1d86d12aeb92f933
+SHA1 (patch-mate-session_gsm-systemd.c) = 9399fff5f15d883c60d4f9fef433f7d435883db2
Index: pkgsrc/x11/mate-session-manager/patches/patch-mate-session_gsm-systemd.c
diff -u pkgsrc/x11/mate-session-manager/patches/patch-mate-session_gsm-systemd.c:1.2 pkgsrc/x11/mate-session-manager/patches/patch-mate-session_gsm-systemd.c:1.3
--- pkgsrc/x11/mate-session-manager/patches/patch-mate-session_gsm-systemd.c:1.2 Wed Mar 6 08:12:36 2019
+++ pkgsrc/x11/mate-session-manager/patches/patch-mate-session_gsm-systemd.c Thu Mar 7 01:26:46 2019
@@ -1,22 +1,19 @@
-$NetBSD: patch-mate-session_gsm-systemd.c,v 1.2 2019/03/06 08:12:36 gutteridge Exp $
+$NetBSD: patch-mate-session_gsm-systemd.c,v 1.3 2019/03/07 01:26:46 gutteridge Exp $
Deal with systemd-only function calls.
--- mate-session/gsm-systemd.c.orig 2019-02-10 13:54:15.000000000 +0000
+++ mate-session/gsm-systemd.c
-@@ -427,15 +427,25 @@ gsm_systemd_is_last_session_for_user (Gs
+@@ -427,15 +427,19 @@ gsm_systemd_is_last_session_for_user (Gs
char **sessions = NULL;
char *session = NULL;
gboolean is_last_session;
- int ret, i;
-+ int ret = 0, i;
++ int ret = 1, i;
+#ifdef HAVE_SYSTEMD
ret = sd_pid_get_session (getpid (), &session);
+#endif
-+
-+ if (session == NULL)
-+ return FALSE;
if (ret != 0) {
return FALSE;
@@ -25,13 +22,10 @@ Deal with systemd-only function calls.
+#ifdef HAVE_SYSTEMD
ret = sd_uid_get_sessions (getuid (), FALSE, &sessions);
+#endif
-+
-+ if (sessions == NULL)
-+ return FALSE;
if (ret <= 0) {
free (session);
-@@ -450,7 +460,9 @@ gsm_systemd_is_last_session_for_user (Gs
+@@ -450,7 +454,9 @@ gsm_systemd_is_last_session_for_user (Gs
if (g_strcmp0 (sessions[i], session) == 0)
continue;
@@ -41,7 +35,7 @@ Deal with systemd-only function calls.
if (ret != 0)
continue;
-@@ -461,7 +473,9 @@ gsm_systemd_is_last_session_for_user (Gs
+@@ -461,7 +467,9 @@ gsm_systemd_is_last_session_for_user (Gs
}
free (state);
Home |
Main Index |
Thread Index |
Old Index