diff options
author | jkh <jkh@FreeBSD.org> | 1994-06-24 14:32:36 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-06-24 14:32:36 +0000 |
commit | 0f0bd5536466f13f233002b6aca47c929fb59902 (patch) | |
tree | 1a8ed67eed0f0a416b8271596415fa03f98cab81 /usr.sbin/crunch/crunchgen/crunched_main.c | |
parent | 81130f902b37a071da196d17cb5e936a764c80e3 (diff) | |
download | FreeBSD-src-0f0bd5536466f13f233002b6aca47c929fb59902.zip FreeBSD-src-0f0bd5536466f13f233002b6aca47c929fb59902.tar.gz |
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.
Diffstat (limited to 'usr.sbin/crunch/crunchgen/crunched_main.c')
-rw-r--r-- | usr.sbin/crunch/crunchgen/crunched_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/crunch/crunchgen/crunched_main.c b/usr.sbin/crunch/crunchgen/crunched_main.c index a07317a..43de7ff 100644 --- a/usr.sbin/crunch/crunchgen/crunched_main.c +++ b/usr.sbin/crunch/crunchgen/crunched_main.c @@ -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; |