]> git.pld-linux.org Git - packages/entrance.git/commitdiff
- entrance uses some bash features which aren't in ksh
authorsparky <sparky@pld-linux.org>
Sat, 18 Mar 2006 19:18:03 +0000 (19:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    entrance-use_bash.patch -> 1.1

entrance-use_bash.patch [new file with mode: 0644]

diff --git a/entrance-use_bash.patch b/entrance-use_bash.patch
new file mode 100644 (file)
index 0000000..d7691f9
--- /dev/null
@@ -0,0 +1,33 @@
+diff -Nur entrance-0.9.0.006/src/client/entrance_session.c entrance-0.9.0.006.bash/src/client/entrance_session.c
+--- entrance-0.9.0.006/src/client/entrance_session.c   2006-01-24 04:45:27.000000000 +0100
++++ entrance-0.9.0.006.bash/src/client/entrance_session.c      2006-03-18 20:03:58.000000000 +0100
+@@ -480,7 +480,7 @@
+            snprintf(buf, sizeof(buf), "%s/entrance_login %i", PACKAGE_BIN_DIR,
+                     (int) pid);
+         }
+-        shell = strdup("/bin/sh");
++        shell = strdup("/bin/bash");
+         /* this bypasses a race condition where entrance loses its x
+            connection before the wm gets it and x goes and resets itself */
+         sleep(10);
+@@ -495,7 +495,7 @@
+    entrance_session_free(e);
+    /* replace this process with a clean small one that just waits for its */
+    /* child to exit.. passed on the cmd-line */
+-   execl("/bin/sh", "/bin/sh", "-l", "-c", buf, NULL);
++   execl("/bin/bash", "/bin/bash", "-l", "-c", buf, NULL);
+ }
+diff -Nur entrance-0.9.0.006/src/daemon/spawner.c entrance-0.9.0.006.bash/src/daemon/spawner.c
+--- entrance-0.9.0.006/src/daemon/spawner.c    2006-01-24 04:45:27.000000000 +0100
++++ entrance-0.9.0.006.bash/src/daemon/spawner.c       2006-03-18 20:02:18.000000000 +0100
+@@ -162,7 +162,7 @@
+         sigaction(SIGUSR1, &_entrance_x_sa, NULL);
+       /* FIXME: need to parse command and NOT go thru /bin/sh!!!! */
+       /* why? some /bin/sh's wont pass on this SIGUSR1 thing... */
+-        execl("/bin/sh", "/bin/sh", "-c", x_cmd, NULL);
++        execl("/bin/bash", "/bin/bash", "-c", x_cmd, NULL);
+         syslog(LOG_WARNING, "Could not execute X server.");
+         exit(1);
+      default:
This page took 0.06166 seconds and 4 git commands to generate.