Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58820 - vi: exrecover won´t work cause of missing symlink
Summary: vi: exrecover won´t work cause of missing symlink
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-29 12:57 UTC by piefke1984
Modified: 2004-08-12 12:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description piefke1984 2004-07-29 12:57:34 UTC
it is possible to execute by the command "vi -r" exrecover. this command shows you unsaved files (most likely after a system crash).
the exrecover binary file is installed to /usr/libexec . vi searches for the file /var/lib/exrecover and tries execution. cause it is a directory, you get a "permission denied". this should be a symlink to /usr/libexec/exrecover.

same problem with the directory /var/lib/expreserve and the program /usr/libexec/expreserve

workaround:
rm -r /var/lib/exrecover
ln -sf /usr/libexec/exrecover /var/lib/exrecover

Reproducible: Always
Steps to Reproduce:
1. emerge vi
2. execute vi -r

Actual Results:  
"permission denied" cause vi tried executing a directory

Expected Results:  
symlink to /usr/libexec/exrecover to execute this file and show unsaved files
Comment 1 Ciaran McCreesh 2004-07-31 03:47:44 UTC
Seemant -- looking through cvs log, it appears to be you who added in these:

                RECOVER="-DEXRECOVER=\\\"/var/lib/exrecover\\\" \
                         -DEXPRESERVE=\\\"/var/lib/expreserve\\\"" \

Don't suppose you can remember why you added that? The binaries still get installed to libexec anyway, it's hardcoded in the Makefile.
Comment 2 Ciaran McCreesh 2004-08-12 12:09:16 UTC
vi-3.7-r6 has the RECOVER stuff removed. Appears to work, please reopen if not :)