[gnome-build-meta/abderrahim/42.beta: 6/6] patch gnome-session




commit d57cd71ab987c50bfc9f27287f34a02b2506a83a
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Fri Feb 18 09:17:37 2022 +0100

    patch gnome-session

 elements/core/gnome-session.bst                    |  2 ++
 ...e-session-don-t-validate-shell-before-usi.patch | 29 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)
---
diff --git a/elements/core/gnome-session.bst b/elements/core/gnome-session.bst
index 88310447e..a3a7a1c8e 100644
--- a/elements/core/gnome-session.bst
+++ b/elements/core/gnome-session.bst
@@ -4,6 +4,8 @@ sources:
 - kind: tar
   url: gnome_downloads:gnome-session/41/gnome-session-41.3.tar.xz
   ref: ee4a229053f522624054889609335b885287cf67bbde0dc9fd882b01ec9b5b39
+- kind: patch
+  path: files/gnome-session/0001-Revert-gnome-session-don-t-validate-shell-before-usi.patch
 build-depends:
 - freedesktop-sdk.bst:components/docbook-xsl.bst
 - freedesktop-sdk.bst:components/libxslt.bst
diff --git a/files/gnome-session/0001-Revert-gnome-session-don-t-validate-shell-before-usi.patch 
b/files/gnome-session/0001-Revert-gnome-session-don-t-validate-shell-before-usi.patch
new file mode 100644
index 000000000..a750774e4
--- /dev/null
+++ b/files/gnome-session/0001-Revert-gnome-session-don-t-validate-shell-before-usi.patch
@@ -0,0 +1,29 @@
+From 4415fa832390490df1fcb70a3f756255ce449557 Mon Sep 17 00:00:00 2001
+From: Ray Strode <halfline gmail com>
+Date: Tue, 15 Feb 2022 20:00:10 +0000
+Subject: [PATCH] Revert "gnome-session: don't validate shell before using it"
+
+This reverts commit db1a97c2ffa091a37087cad15c759554e6fbb4ad
+---
+ gnome-session/gnome-session.in | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/gnome-session/gnome-session.in b/gnome-session/gnome-session.in
+index b4b1f8fa..ddd1a591 100755
+--- a/gnome-session/gnome-session.in
++++ b/gnome-session/gnome-session.in
+@@ -2,7 +2,10 @@
+ 
+ if [ "x$XDG_SESSION_TYPE" = "xwayland" ] &&
+    [ "x$XDG_SESSION_CLASS" != "xgreeter" ] &&
+-   [  -n "$SHELL" ]; then
++   [  -n "$SHELL" ] &&
++   grep -q "$SHELL" /etc/shells &&
++   ! (echo "$SHELL" | grep -q "false") &&
++   ! (echo "$SHELL" | grep -q "nologin"); then
+   if [ "$1" != '-l' ]; then
+     exec bash -c "exec -l '$SHELL' -c '$0 -l $*'"
+   else
+-- 
+2.35.0
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]