diff options
author | Ron Yorston <rmy@pobox.com> | 2019-03-09 11:40:42 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-03-09 11:40:42 +0000 |
commit | 486582a7307cf845ee52fcb6f9ede2d92c69ed86 (patch) | |
tree | e2d071b981aae8fc33f1df22cc4c1a0d71a0f491 /loginutils | |
parent | 8fcbe777412b301e5dddd4931b2e1016802141b8 (diff) | |
download | busybox-w32-486582a7307cf845ee52fcb6f9ede2d92c69ed86.tar.gz busybox-w32-486582a7307cf845ee52fcb6f9ede2d92c69ed86.tar.bz2 busybox-w32-486582a7307cf845ee52fcb6f9ede2d92c69ed86.zip |
su: change title of console window
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/suw32.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/loginutils/suw32.c b/loginutils/suw32.c index 93fd145f1..787bcbbef 100644 --- a/loginutils/suw32.c +++ b/loginutils/suw32.c | |||
@@ -49,7 +49,9 @@ int suw32_main(int argc UNUSED_PARAM, char **argv) | |||
49 | info.lpFile = bb_path; | 49 | info.lpFile = bb_path; |
50 | /* ShellExecuteEx() always runs system binaries in C:\Windows\System32. | 50 | /* ShellExecuteEx() always runs system binaries in C:\Windows\System32. |
51 | * Pass the directory we want to the shell. */ | 51 | * Pass the directory we want to the shell. */ |
52 | info.lpParameters = xasprintf("--busybox ash -d \"%s\"", getcwd(NULL, 0)); | 52 | info.lpParameters = |
53 | xasprintf("--busybox ash -d \"%s\" -t \"BusyBox ash (su)\" ", | ||
54 | getcwd(NULL, 0)); | ||
53 | if (opt_command) | 55 | if (opt_command) |
54 | info.lpParameters = | 56 | info.lpParameters = |
55 | xasprintf("%s -s -c \"%s\"", info.lpParameters, opt_command); | 57 | xasprintf("%s -s -c \"%s\"", info.lpParameters, opt_command); |