CVSROOT:        /cvs
Module name:    src
Changes by:     schwa...@cvs.openbsd.org        2019/01/14 01:48:16

Modified files:
        bin/ksh        : mail.c 

Log message:
Fix three more buglets:
1. Another off-by-one: if a mail file name ends in an (escaped)
percent sign, do not forget to check whether the next byte is the
percent sign introducing the message (MAILPATH='filename\%%msg').
2. If the message is empty, use the default message rather than
printing a blank line (MAILPATH='filename%').
3. If the file name is empty, don't bother with mballoc(): the
subsequent stat(2) can never succeed.  (MAILPATH='%msg').
Found while reviewing the previous commit by tedu@.
OK tedu@.

Reply via email to