% cat >/sys/lib/dist/changes/1176152406.0.txt << EOF More sanity tests to ensure that $sysname isn't a string that rc is going to choke on. Suggested by dho after reviewing 0407. EOF [geoff] --rwxrwxr-x M 60 geoff sys 559 Apr 9 16:41 rc/bin/diskparts /n/sourcesdump/2007/0408/plan9/rc/bin/diskparts:16,20 - /n/sources/plan9/rc/bin/diskparts:16,21 sysname=`{cat /dev/sysname} # set up any fs(3) partitions - if (~ $#sysname 1 && test -r /cfg/$sysname/fsconfig && test -w /dev/fs/ctl) + if (~ $#sysname 1 && ! ~ $sysname '' && + test -r /cfg/$sysname/fsconfig && test -w /dev/fs/ctl) read -m /cfg/$sysname/fsconfig >/dev/fs/ctl