Skip to content

Commit

Permalink
Merge pull request #2164 from ghaerr/c86-2
Browse files Browse the repository at this point in the history
[cmds] Display "Can't run OpenWatcom OS/2 program" when CONFIG_EXEC_OS2 not set
  • Loading branch information
ghaerr authored Dec 30, 2024
2 parents 2bc133d + b2a80ad commit 28934c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions elkscmd/ash/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ tryexec(cmd, argv, envp)
argv[0] = cmd;
execinterp(argv, envp);
}
if (parsenleft > 2 && p[0] == 'M' && p[1] == 'Z') {
error2("Can't run OpenWatcom OS/2 program", "Set CONFIG_EXEC_OS2=y in kernel");
}
#endif
setparam(argv + 1);
exraise(EXSHELLPROC);
Expand Down
2 changes: 1 addition & 1 deletion elkscmd/rootfs_template/etc/profile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export PATH=/bin
export PATH=.:/bin
PS1="$HOSTNAME$PS1"
umask 022
#FAT permissions fix
Expand Down

0 comments on commit 28934c1

Please sign in to comment.