Missed one function in PPC32 fix

pull/435/head
Andrew Hutchings 2022-07-29 13:34:47 +01:00
parent afdc1f4c67
commit 2e4d69e5ea
1 changed files with 5 additions and 1 deletions

View File

@ -418,7 +418,11 @@ static int SHELL_Subsystem(WOLFSSHD_CONNECTION* conn, WOLFSSH* ssh)
WMEMSET(cmd, 0, sizeof(cmd));
XSNPRINTF(cmd, sizeof(cmd), "su %s", userName);
printf("executing command [%s]\n", cmd);
system(cmd);
errno = 0;
ret = system(cmd);
if (ret && errno) {
printf("error executing command\n");
}
rc = chdir(p_passwd->pw_dir);
if (rc != 0) {
return WS_FATAL_ERROR;