% cat >/sys/lib/dist/changes/1175869806.3.txt << EOF
Avoid rc ``crapping out'' if $sysname is empty.
EOF
[geoff] --rwxrwxr-x M 77 geoff sys 536 Apr 7 02:17 rc/bin/diskparts
/n/sourcesdump/2007/0407/plan9/rc/bin/diskparts:16,21 -
/n/sources/plan9/rc/bin/diskparts:16,20
sysname=`{cat /dev/sysname}
# set up any fs(3) partitions
- if (test -e /env/sysname)
- if (test -r /cfg/$sysname/fsconfig && test -w /dev/fs/ctl)
- read -m /cfg/$sysname/fsconfig >/dev/fs/ctl
+ if (~ $#sysname 1 && test -r /cfg/$sysname/fsconfig && test -w /dev/fs/ctl)
+ read -m /cfg/$sysname/fsconfig >/dev/fs/ctl
|