aboutsummaryrefslogtreecommitdiff
path: root/libbb/run_shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/run_shell.c')
-rw-r--r--libbb/run_shell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/run_shell.c b/libbb/run_shell.c
index 6d084eead..d5dc37b54 100644
--- a/libbb/run_shell.c
+++ b/libbb/run_shell.c
@@ -46,7 +46,7 @@ static security_context_t current_sid=NULL;
46void 46void
47renew_current_security_context(void) 47renew_current_security_context(void)
48{ 48{
49 if (current_sid) 49 if (current_sid)
50 freecon(current_sid); /* Release old context */ 50 freecon(current_sid); /* Release old context */
51 51
52 getcon(&current_sid); /* update */ 52 getcon(&current_sid); /* update */
@@ -56,7 +56,7 @@ renew_current_security_context(void)
56void 56void
57set_current_security_context(security_context_t sid) 57set_current_security_context(security_context_t sid)
58{ 58{
59 if (current_sid) 59 if (current_sid)
60 freecon(current_sid); /* Release old context */ 60 freecon(current_sid); /* Release old context */
61 61
62 current_sid=sid; 62 current_sid=sid;
@@ -84,7 +84,7 @@ void run_shell ( const char *shell, int loginshell, const char *command, const c
84 84
85 args [0] = bb_get_last_path_component ( bb_xstrdup ( shell )); 85 args [0] = bb_get_last_path_component ( bb_xstrdup ( shell ));
86 86
87 if ( loginshell ) 87 if ( loginshell )
88 args [0] = bb_xasprintf ("-%s", args [0]); 88 args [0] = bb_xasprintf ("-%s", args [0]);
89 89
90 if ( command ) { 90 if ( command ) {