Module Name: src Committed By: jakllsch Date: Fri Jul 17 20:31:21 UTC 2009
Modified Files: src/usr.sbin/sup/source: supcmain.c Log Message: doswitch() has changed the value of argc by the time it's checked here, adjust accordingly. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/usr.sbin/sup/source/supcmain.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/sup/source/supcmain.c diff -u src/usr.sbin/sup/source/supcmain.c:1.26 src/usr.sbin/sup/source/supcmain.c:1.27 --- src/usr.sbin/sup/source/supcmain.c:1.26 Sun Jan 4 17:10:47 2009 +++ src/usr.sbin/sup/source/supcmain.c Fri Jul 17 20:31:20 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: supcmain.c,v 1.26 2009/01/04 17:10:47 christos Exp $ */ +/* $NetBSD: supcmain.c,v 1.27 2009/07/17 20:31:20 jakllsch Exp $ */ /* * Copyright (c) 1992 Carnegie Mellon University @@ -627,7 +627,7 @@ doswitch(&argc, &argv, &collT, &oflags, &aflags, username, sizeof(username)); - if (argc == 1 && !sysflag) + if (argc == 0 && !sysflag) logquit(1, "Need either -s or supfile"); #if MACH oldsigsys = signal(SIGSYS, SIG_IGN);