Ticket #1656: Incorrect processing of cases the lack of rights to save preferences.
commitc9b4b0159d3f6a6a1fb9d7b149f2c0fd7f8dde4d
authorSlava Zanko <slavazanko@gmail.com>
Tue, 27 Oct 2009 10:14:32 +0000 (27 12:14 +0200)
committerSlava Zanko <slavazanko@gmail.com>
Wed, 28 Oct 2009 11:37:39 +0000 (28 13:37 +0200)
treeff8a6e96fa55a5ca3e9fb664d0e1b32e6e957108
parent45d8208ff6c972a8eff3a8c46ea7b634935b7825
Ticket #1656: Incorrect processing of cases the lack of rights to save preferences.

In the case where insufficient rights to the contents of the directory ~/.mc/* to
save preferences I get "settings saved in ~ /.mc/ini", but really nothing is saved.

It would be correct to issue a message like "Not enough permissions to save the ~/.mc/ini"

Also, when autosave should be issued a message about the lack of rights.

This branch will check rights of config-files.

testCase:
 *) chmod 0400 ~/.mc
 *) run mc

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
src/cmd.c
src/hotlist.c
src/layout.c
src/learn.c
src/mcconfig/common.c
src/mcconfig/mcconfig.h
src/option.c
src/panelize.c
src/setup.c
src/setup.h
src/widget.c