We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c3dc05 commit b72c36cCopy full SHA for b72c36c
session.c
@@ -591,6 +591,7 @@ do_exec_no_pty(Session *s, const char *command)
591
si.lpDesktop = L"winsta0\\default";
592
593
SetEnvironmentVariable("USER", s->pw->pw_name);
594
+ SetEnvironmentVariable("USERNAME", s->pw->pw_name);
595
SetEnvironmentVariable("LOGNAME", s->pw->pw_name);
596
597
/*
@@ -1206,7 +1207,7 @@ do_exec_pty(Session *s, const char *command)
1206
1207
*/
1208
1209
//return 0;
- return do_exec_pty(s, command);
1210
+ return do_exec_no_pty(s, command);
1211
1212
#endif
1213
}
0 commit comments