From 03e2451be1c9261acc1606111ebd1cf5f9d2dbdd Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 2 Oct 2021 20:29:30 +0000 Subject: Fix chkmail loop break condition padvance_magic() returns -1 when there are no more paths left, not zero. --- bin/dash/src/mail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dash/src/mail.c b/bin/dash/src/mail.c index e6baaa1b..ec5bd103 100644 --- a/bin/dash/src/mail.c +++ b/bin/dash/src/mail.c @@ -80,7 +80,7 @@ chkmail(void) int len; len = padvance_magic(&mpath, nullstr, 2); - if (!len) + if (len == -1) break; p = stackblock(); if (*p == '\0') -- cgit 1.4.1 s.form.submit();'> dontfiles
summary refs log tree commit diff
path: root/bin/catsh/jobs.c (unfollow)
Commit message (Collapse)Author
2019-05-12Add T suffix in bitJune McEnroe
2019-05-10Highlight yacc and lex files as CJune McEnroe
Their %-prefixed directives should probably be highlighted Macro.
2019-05-10Use val instead of suboptargJune McEnroe
suboptarg doesn't exist in GNU. Hopefully BSD getsubopt also sets val on failure?
2019-05-09Add Parable of the SowerJune McEnroe
2019-05-07Add bit without buildJune McEnroe
Need to do some stuff in the Makefile for lex and yacc and generating HTML pages for it.
2019-05-04Fix MANDIR typoJune McEnroe
2019-05-04Move relay to binJune McEnroe