nsxiv92e3b57
Pass real paths to key handler instead of the paths provided by the user
Programs called by the key handler might replace symlinks instead of their targets.
+2 −2
2 files changed
| @@ -1,4 +1,4 @@ | |||
| 1 | − | VERSION := git-20150111 | |
| 1 | + | VERSION := git-20150118 | |
| 2 | 2 | ||
| 3 | 3 | PREFIX := /usr/local | |
| 4 | 4 | MANPREFIX := $(PREFIX)/share/man | |
| @@ -542,7 +542,7 @@ void run_key_handler(const char *key, unsigned int mask) | |||
| 542 | 542 | for (f = i = 0; f < fcnt; i++) { | |
| 543 | 543 | if ((marked && (files[i].flags & FF_MARK)) || (!marked && i == fileidx)) { | |
| 544 | 544 | stat(files[i].path, &oldst[f]); | |
| 545 | − | fprintf(pfs, "%s\n", files[i].name); | |
| 545 | + | fprintf(pfs, "%s\n", files[i].path); | |
| 546 | 546 | f++; | |
| 547 | 547 | } | |
| 548 | 548 | } | |