Implement cancel of chmod of many files.
commit34cbab7c2a3977029fcc956756a43169920f1ba4
authorAndrew Borodin <aborodin@vmail.ru>
Sun, 20 Aug 2017 15:35:08 +0000 (20 18:35 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sun, 10 Dec 2017 06:10:22 +0000 (10 09:10 +0300)
tree2cb0d9dfda807b8b7539f6844a793ef279d554a1
parentfd44219178cc3f6fdddf3ea8d0997af6a413f206
Implement cancel of chmod of many files.

What steps will reproduce the problem?
1. Selected many files (12000 in my case).
2. Ctrl+x c (chmod) - changed mode to desired one.
3. MC started to change file modes but failed, it shows error popup
"Cannot chmod ... Operation not permitted (1)" for every file and waits
for a keypress.
MC shows error for every file in a list (12000 times), there is no
chance to cancel the whole operation, only to press any key 12000 times
or to kill MC.

The solution: implement error message with follow buttons:
"Ignore" -- ignore current error;
"Ignore all" -- ignore current error, try chmod of other selected files,
and ignore all following errors;
"Retry" -- retry chmod operation;
"Cancel" -- cancel chmod operation immediately.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/filemanager/chmod.c