Little bug in tinyhalt causing it not to recognize when called as reboot.

This commit is contained in:
Ben Gras 2006-04-09 23:24:37 +00:00
parent 3172b4d0ad
commit 9f3cc391a2

View File

@ -25,7 +25,7 @@ int main(int argc, char **argv)
execv("/usr/bin/halt", argv); execv("/usr/bin/halt", argv);
#endif #endif
if ((prog = strrchr(*argv,'/')) == nil) prog= argv[0]; else argv++; if ((prog = strrchr(*argv,'/')) == nil) prog= argv[0]; else prog++;
sleep(2); /* Not too fast. */ sleep(2); /* Not too fast. */