Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to write to a file which expand() fails to expand #17

Closed
blueyed opened this issue Dec 17, 2012 · 1 comment · Fixed by #18
Closed

Fails to write to a file which expand() fails to expand #17

blueyed opened this issue Dec 17, 2012 · 1 comment · Fixed by #18

Comments

@blueyed
Copy link
Contributor

blueyed commented Dec 17, 2012

I just had a problem where expand() in SudoEdit#SudoDo would fail (return an empty string).

SudoWrite 1 would fail with "Cannot write file. Please enter filename for writing!".

The directory (/srv/example.com/shared) contains a symlink:

drwxr-xr-x 1 user root     310 Dec 12 22:37 /srv
lrwxrwxrwx 1 root root      28 Jul 26 16:38 /srv/example.com -> /home/www-data/example.com
drwxrwxr-x 1 user www-data 120 Nov 25 22:11 /srv/example.com/shared
@chrisbra
Copy link
Owner

Hm,
what kind of file is that? What string was put into the expand() function. This might actually be a bug in Vim, that it can't expand a given filename. But the patch looks good, so I'll include it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants