diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-03-08 20:53:30 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-03-08 20:53:30 +0100 |
commit | 28f3a3aad8d2d73010f1c81080e92f71903f4556 (patch) | |
tree | 99d0ec9aaad7b92d6456e72ef15dd60a077d8645 /sys | |
parent | f99b9cae6a3dc5775a83b264d6041be8d5d416d6 (diff) |
boorc, nusbrc: fix wrong redirections after &
the rc & operator changes stdin to /dev/null, so we
have to do the <[0=1] inside the {}
this never showed up as an issue because many
fileservers just read 9p messages from standard
output.
Diffstat (limited to 'sys')
-rwxr-xr-x | sys/src/9/boot/local.rc | 2 | ||||
-rwxr-xr-x | sys/src/9/boot/nusbrc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/boot/local.rc b/sys/src/9/boot/local.rc index c99981042..fcfe5388b 100755 --- a/sys/src/9/boot/local.rc +++ b/sys/src/9/boot/local.rc @@ -45,7 +45,7 @@ fn configlocal{ } fn bootfs{ - {$1 -s -f $*(2-) &} <[0=1] | echo 0 >/srv/boot + {$1 -s -f $*(2-) <[0=1] &} | echo 0 >/srv/boot } fn connectlocal{ diff --git a/sys/src/9/boot/nusbrc b/sys/src/9/boot/nusbrc index be7629c26..bf3c311e0 100755 --- a/sys/src/9/boot/nusbrc +++ b/sys/src/9/boot/nusbrc @@ -45,7 +45,7 @@ if(! nusb/usbd) diskparts $dev for(part in $dev/dos* $dev/9fat* $dev/data) if(test -r $part && ~ `{fstype $part} dos) { mkdir -m 0700 '#σc/'^$dev || exit - {dossrv -s -f $part &} <[0=1] | + {dossrv -s -f $part <[0=1] &} | echo 0 >'#σc/'^$dev/dos exit } |