aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/netfiles/netfilestat
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/netfiles/netfilestat')
-rwxr-xr-xsrc/cmd/netfiles/netfilestat4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/netfiles/netfilestat b/src/cmd/netfiles/netfilestat
index 1d687e51..992cac22 100755
--- a/src/cmd/netfiles/netfilestat
+++ b/src/cmd/netfiles/netfilestat
@@ -1,7 +1,7 @@
#!/usr/local/plan9/bin/rc
if(! ~ $#* 2){
- echo usage: netisdir system path >[1=2]
+ echo usage: netfilestat system path >[1=2]
exit usage
}
@@ -18,7 +18,7 @@ fn dostat {
echo !echo XXX connected
echo cd $2
echo !echo XXX directory exists
- } | sftp -b - $1 >$t >[2=1]
+ } | sftp -b /dev/stdin $1 >$t >[2=1]
if(9 grep -s XXX.directory.exists $t){
echo directory
exit 0