aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2007-10-09 19:22:43 -0400
committerRuss Cox <rsc@swtch.com>2007-10-09 19:22:43 -0400
commit3dc14df0f7fc06bc90bf525de440fbe15e992130 (patch)
tree71b17f4d18195ecbad2899c5200c0fa06e7610e4 /bin
parent7a400ee957a0815287af806e18ef90dd18b47f82 (diff)
downloadplan9port-3dc14df0f7fc06bc90bf525de440fbe15e992130.tar.gz
plan9port-3dc14df0f7fc06bc90bf525de440fbe15e992130.tar.bz2
plan9port-3dc14df0f7fc06bc90bf525de440fbe15e992130.zip
mount: explicit u on test -S and mount to get unix versions (Chris King)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mount6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/mount b/bin/mount
index 90136b11..aa106e80 100755
--- a/bin/mount
+++ b/bin/mount
@@ -7,9 +7,9 @@ if(! ~ $#* 2){
switch(`{uname}){
case Linux
if(lsmod|9 grep -si '^9p(2000)? '){
- if(test -S $1)
- exec mount -t 9p -o proto'='unix,name'='$USER $1 $2
- exec mount -t 9p -o proto'='tcp,name'='$USER $1 $2
+ if(u test -S $1)
+ exec u mount -t 9p -o proto'='unix,name'='$USER $1 $2
+ exec u mount -t 9p -o proto'='tcp,name'='$USER $1 $2
}
if(lsmod|9 grep -si '^fuse ')
exec 9pfuse $1 $2