summaryrefslogtreecommitdiff
path: root/packages/e17/entrance-0.9.0.009/use-bash.patch
blob: 7dfab83711f258719d70e8e0d6400f97b1e1d5a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Index: entrance-0.9.0.009/src/client/entrance_session.c
===================================================================
--- entrance-0.9.0.009.orig/src/client/entrance_session.c
+++ entrance-0.9.0.009/src/client/entrance_session.c
@@ -854,7 +854,7 @@ _entrance_session_execute_in_shell(char 
    if (shell && (strlen(shell) > 0))
       shell_cmd = shell;
    else
-      shell_cmd = strdup("/bin/sh");
+      shell_cmd = strdup("/bin/bash");
 
    if (session_name)
       snprintf(buf, sizeof(buf), "%s %s", session_cmd, session_name);
@@ -869,9 +869,9 @@ _entrance_session_execute_in_shell(char 
    if (res == -1)
       /* TODO: should actually hit the user in the face with this message */
       syslog(LOG_NOTICE,
-             "Neither '%s' or '/bin/sh' are working login shells for user '%s'. Your session may not function properly. ",
+             "Neither '%s' or '/bin/bash' are working login shells for user '%s'. Your session may not function properly. ",
              shell, user);
-      shell_cmd = strdup("/bin/sh");
+      shell_cmd = strdup("/bin/bash");
    
    res = execlp(shell_cmd, shell_cmd, "-c", buf, NULL);
 
Index: entrance-0.9.0.009/src/client/main.c
===================================================================
--- entrance-0.9.0.009.orig/src/client/main.c
+++ entrance-0.9.0.009/src/client/main.c
@@ -453,7 +453,7 @@ reboot_cb(void *data, Evas_Object * o, c
       {
         case 0:
            if (execl
-               ("/bin/sh", "/bin/sh", "-c", "/sbin/shutdown -r now", NULL))
+               ("/bin/bash", "/bin/bash", "-c", "/sbin/shutdown -r now", NULL))
            {
               syslog(LOG_CRIT,
                      "Reboot failed: Unable to execute /sbin/shutdown");
@@ -495,7 +495,7 @@ shutdown_cb(void *data, Evas_Object * o,
       {
         case 0:
            if (execl
-               ("/bin/sh", "/bin/sh", "-c", "/sbin/shutdown -h now", NULL))
+               ("/bin/bash", "/bin/bash", "-c", "/sbin/shutdown -h now", NULL))
            {
               syslog(LOG_CRIT,
                      "Shutdown failed: Unable to execute /sbin/shutdown");
Index: entrance-0.9.0.009/src/daemon/entrance_wrapper.in
===================================================================
--- entrance-0.9.0.009.orig/src/daemon/entrance_wrapper.in
+++ entrance-0.9.0.009/src/daemon/entrance_wrapper.in
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # Wrapper script to set up login environment:
 # Load up all the junk in /etc/profile first, and then
 # pass control to entrance proper.