Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2007/0407/2

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


% 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


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.