aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-03-09 11:40:42 +0000
committerRon Yorston <rmy@pobox.com>2019-03-09 11:40:42 +0000
commit486582a7307cf845ee52fcb6f9ede2d92c69ed86 (patch)
treee2d071b981aae8fc33f1df22cc4c1a0d71a0f491 /loginutils
parent8fcbe777412b301e5dddd4931b2e1016802141b8 (diff)
downloadbusybox-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.c4
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);