Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 58820

Summary: vi: exrecover won´t work cause of missing symlink
Product: Gentoo Linux Reporter: piefke1984
Component: New packagesAssignee: Vim Maintainers <vim>
Status: RESOLVED FIXED    
Severity: minor CC: seemant
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 :)