Diffstat (limited to 'core/apps/embeddedkonsole/MyPty.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/MyPty.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/apps/embeddedkonsole/MyPty.cpp b/core/apps/embeddedkonsole/MyPty.cpp index 3622d48..6421ab0 100644 --- a/core/apps/embeddedkonsole/MyPty.cpp +++ b/core/apps/embeddedkonsole/MyPty.cpp | |||
@@ -169,7 +169,8 @@ int MyPty::run(const char* cmd, QStrList &, const char*, int) | |||
169 | char msg[] = "WARNING: You are running this shell as root!\n"; | 169 | char msg[] = "WARNING: You are running this shell as root!\n"; |
170 | write(ttyfd, msg, sizeof(msg)); | 170 | write(ttyfd, msg, sizeof(msg)); |
171 | } | 171 | } |
172 | execl(cmd, cmd, 0); | 172 | ; //creates a login shell |
173 | execl(cmd, cmd, "--login", 0); | ||
173 | 174 | ||
174 | donePty(); | 175 | donePty(); |
175 | exit(-1); | 176 | exit(-1); |