Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jun 2003 23:53:25 +0930
From:      Shaun Branden <shaun@pcuse.com>
To:        ports@freebsd.org
Subject:   vim editing over ftp
Message-ID:  <20030610142325.GB37636@pcuse.com>

next in thread | raw e-mail | index | archive | help
I recently upgraded to vim 6.2.14 and now have problems editing over
ftp. The file displays locally as empty, but I know it exists and has
content. If I make any edits, the existing file on the server is clobbered.

Here is information from the vim debugger:
DBG: NetRead(a:1<0r>) {
DBG: NetOptionSave()
DBG: NetRead1: choice<ftp://ftp.pcuse.com/pcuse.com/resume.html>;
DBG: NetRead2: choice<ftp://ftp.pcuse.com/pcuse.com/resume.html>;
DBG: NetMethod(a:choice<ftp://ftp.pcuse.com/pcuse.com/resume.html>) {
DBG: NetMethod: ftp://...
DBG: NetUserPass(a:0<0>) {
DBG: a:0=0 case <=1:
DBG: return NetUserPass }
DBG: NetMethod: a:choice
<ftp://ftp.pcuse.com/pcuse.com/resume.html>;
DBG: NetMethod: b:netrw_method <3>
DBG: NetMethod: g:netrw_machine<ftp.pcuse.com>
DBG: NetMethod: g:netrw_port   <>
DBG: NetMethod: g:netrw_uid    <shaun>
DBG: NetMethod: g:netrw_passwd <real_passwd_here>
DBG: NetMethod: b:netrw_fname  <pcuse.com/resume.html>
DBG: NetMethod return }
DBG: read via fetch for ftp+mipf (method #3)
DBG: NetGetFile readcmd<0r> cmdarg<> fname</tmp/v288512/0> readable=0
DBG NetRead: cleanup
DBG: NetOptionRestore()
DBG: return NetRead }

I ran this as the root user just incase there were permission issues.

/tmp/v288512 directory permissions are:
drwx------  2 root     wheel      512 Jun 10 11:37 v288512

and the directory is empty:
root@sagan:v288512$ pwd
/tmp/v288512
root@sagan:v288512$ ls -la
total 6
drwx------   2 root  wheel   512 Jun 10 11:37 .
drwxrwxrwt  43 root  wheel  3072 Jun 10 11:41 ..

Vim does not print the file to screen, but will clobber the file if I
make edits. The file does exist on the server:

ncftp /pcuse.com > pwd
  ftp://shaun:PASSWORD@ftp.pcuse.com/pcuse.com/
ncftp /pcuse.com > ls -l r*
-rw-r--r--   1 shaun    shaun         7542 Jun  8 04:09 resume.html

thanks

Shaun Branden



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030610142325.GB37636>