mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
window: fix regression w.r.t subrios
When running a plumber and rio combo within a window we were wrongly using the 'root' rios /dev/wctl. This change happened when we removed $wctl and had subtly changed the priority of ways /bin/window used to talk to rio. This mimics the old behavior.
This commit is contained in:
parent
0fbecab00e
commit
58339beadd
1 changed files with 2 additions and 2 deletions
|
@ -90,12 +90,12 @@ if(~ $#mflag 1) {
|
|||
}
|
||||
if not {
|
||||
if(~ $wctl ''){
|
||||
if(test -f /dev/wctl) wctl=/dev/wctl
|
||||
if not if(! ~ $wsys '') {
|
||||
if(! ~ $wsys '') {
|
||||
rfork n
|
||||
mount -b $wsys /mnt/wsys none
|
||||
wctl=/mnt/wsys/wctl
|
||||
}
|
||||
if not if(test -f /dev/wctl) wctl=/dev/wctl
|
||||
if not if(test -f /mnt/term/dev/wctl) wctl=/mnt/term/dev/wctl
|
||||
if not if(test -r /mnt/term/env/wctl) wctl=/mnt/term^`{cat /mnt/term/env/wctl}
|
||||
if not {
|
||||
|
|
Loading…
Reference in a new issue