diff options
author | Alexander Buddenbrock <a.buddenbrock@ish.de> | 2015-02-12 16:14:33 +0100 |
---|---|---|
committer | Alexander Buddenbrock <a.buddenbrock@ish.de> | 2015-02-12 16:14:33 +0100 |
commit | 9c1f5c2a8c3c803c003babc67e2a933d663315ca (patch) | |
tree | a30acace2aa5e6856d3a2f418e708e4cce7df8f2 /doc/ranger.1 | |
parent | e37671c0e87a2406eb1199ba458b9020642f9ce9 (diff) | |
download | ranger-9c1f5c2a8c3c803c003babc67e2a933d663315ca.tar.gz |
Fix renaming with insufficient privileges
Closes #97 When renaming a file, the internal file pointer will be set to the new file name without checking if the file actually got renamed. This would cause the file pointer to be set to an invalid file if renaming failed because of bad privileges. With no valid file, the previev window will disappear. This patch adds a return value to the core renaming method so it can be checking by the caller. The rename command now checks if the rename succeeded and only then sets the new file pointer.
Diffstat (limited to 'doc/ranger.1')
0 files changed, 0 insertions, 0 deletions