Just talked with James - there's another, better way to go about this.
authorJordan K. Hubbard <jkh@FreeBSD.org>
Fri, 24 Jun 1994 15:14:16 +0000 (15:14 +0000)
committerJordan K. Hubbard <jkh@FreeBSD.org>
Fri, 24 Jun 1994 15:14:16 +0000 (15:14 +0000)
Back out my earlier change.  Note that this is just for the 1.1.5R floppies;
the 1.1.5A ones still have the work-around method (which works fine and
doesn't hurt anything, it's just kludge!).

contrib/crunch/crunchgen/crunched_main.c

index 43de7ff..a07317a 100644 (file)
@@ -52,8 +52,6 @@ int main(int argc, char **argv)
     slash = strrchr(argv[0], '/');
     basename = slash? slash+1 : argv[0];
 
     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;
 
     for(ep=entry_points; ep->name != NULL; ep++)
        if(!strcmp(basename, ep->name)) break;