aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/netfiles/netfileput
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/netfiles/netfileput')
-rwxr-xr-xsrc/cmd/netfiles/netfileput4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/netfiles/netfileput b/src/cmd/netfiles/netfileput
index baa3eb12..7b90124d 100755
--- a/src/cmd/netfiles/netfileput
+++ b/src/cmd/netfiles/netfileput
@@ -1,7 +1,7 @@
#!/usr/local/plan9/bin/rc
if(! ~ $#* 2){
- echo 'usage: netput system path' >[1=2]
+ echo 'usage: netfileput system path' >[1=2]
exit usage
}
@@ -15,7 +15,7 @@ fn sigexit { rm -f $t }
fn putfile{
cat >$t
- if(! echo put $t $2 | sftp -b - $1 >/dev/null)
+ if(! echo put $t $2 | sftp -b /dev/stdin $1 >/dev/null)
exit 1
}
fn putfile9p{