summary refs log tree commit diff stats
path: root/doc/screenshot.png
diff options
context:
space:
mode:
authorAlexander Buddenbrock <a.buddenbrock@ish.de>2015-02-12 16:14:33 +0100
committerAlexander Buddenbrock <a.buddenbrock@ish.de>2015-02-12 16:14:33 +0100
commit9c1f5c2a8c3c803c003babc67e2a933d663315ca (patch)
treea30acace2aa5e6856d3a2f418e708e4cce7df8f2 /doc/screenshot.png
parente37671c0e87a2406eb1199ba458b9020642f9ce9 (diff)
downloadranger-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/screenshot.png')
0 files changed, 0 insertions, 0 deletions
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154