Pass given file names to key-handler instead of real paths
Misbehaving command lines in the key-handler that rewrite the given files and
thus replace symbolic links instead of their targets shall call realpath(1).
Fixes issue #205 and reverts commit 92e3b578
.
This commit is contained in:
2
main.c
2
main.c
@ -525,7 +525,7 @@ void run_key_handler(const char *key, unsigned int mask)
|
||||
for (f = i = 0; f < fcnt; i++) {
|
||||
if ((marked && (files[i].flags & FF_MARK)) || (!marked && i == fileidx)) {
|
||||
stat(files[i].path, &oldst[f]);
|
||||
fprintf(pfs, "%s\n", files[i].path);
|
||||
fprintf(pfs, "%s\n", files[i].name);
|
||||
f++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user