mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-28 22:36:24 +01:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1770
@ -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