CVSROOT:        /cvs
Module name:    src
Changes by:     r...@cvs.openbsd.org    2013/11/25 14:51:48

Modified files:
        distrib/miniroot: install.sub 

Log message:
Rework _autorespond()

- strip leading/trailing blanks from question
- strip leading blanks from answer
- compare questions case insensitive
- ignore empty and comment lines and lines without =
- treat empty/missing/multiple answers as error and exit
- ensure, that $RESPONSEFILE is actually an existing file.
- unset IFS to preserve leading/trailing blanks on read.
- use read -r, because we don't support line continuation in answers.
- simplify the "_i=0 but we have a default answer" case a bit.

lots of feedback from halex@
ok deraadt@ krw@

Reply via email to