This is a kludge. Unless I make a link from sh to - (which would leave a file
called `-' lying around on the users system forever) login shells will fail. Just special-case the handling of `-' for now until/unless I find a more palatable solution.
This commit is contained in:
parent
cf3820b72a
commit
a47d4a467d
@ -52,6 +52,8 @@ int main(int argc, char **argv)
|
||||
slash = strrchr(argv[0], '/');
|
||||
basename = slash? slash+1 : argv[0];
|
||||
|
||||
if (!strcmp(argv[0], "-"))
|
||||
basename="sh";
|
||||
for(ep=entry_points; ep->name != NULL; ep++)
|
||||
if(!strcmp(basename, ep->name)) break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user