summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-07-23 15:00:07 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-07-23 15:00:07 +0000
commite86941baf1069b9f87577988f53c314a8a818bad (patch)
tree3b0c2cedff6f3977ee62e768c3231a911939f09a /usr.sbin/inetd
parent021a163935b4e6c8aa5476ab2520f15a70c5b6a0 (diff)
downloadFreeBSD-src-e86941baf1069b9f87577988f53c314a8a818bad.zip
FreeBSD-src-e86941baf1069b9f87577988f53c314a8a818bad.tar.gz
Fix auth -t argument handling. It was broken for the "sec.usec" case.
Add a warning for bogus -t arguments for the (debug) case.
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r--usr.sbin/inetd/builtins.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/inetd/builtins.c b/usr.sbin/inetd/builtins.c
index 01bee5a..49ffc48 100644
--- a/usr.sbin/inetd/builtins.c
+++ b/usr.sbin/inetd/builtins.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: builtins.c,v 1.3 1999/07/22 21:42:49 green Exp $
+ * $Id: builtins.c,v 1.4 1999/07/23 03:51:52 green Exp $
*
*/
@@ -336,13 +336,14 @@ ident_stream(s, sep) /* Ident service */
switch (sscanf(optarg, "%d.%d", &sec,
&usec)) {
- case 1:
- tv.tv_sec = sec;
- break;
case 2:
tv.tv_usec = usec;
+ case 1:
+ tv.tv_sec = sec;
break;
default:
+ if (debug)
+ warnx("bad argument to -t option");
break;
}
} while (0);
OpenPOWER on IntegriCloud