]> git.sesse.net Git - vlc/commit
config: if read-only, refuse to save the configuration
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 12 Jul 2009 18:04:21 +0000 (21:04 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 12 Jul 2009 18:04:21 +0000 (21:04 +0300)
commiteb54a41c0f2150d7d33e855bb36899fedaf0743d
tree645f5aaf0587f6545b28febb97667d5cc081a500
parent75dda08f9fd7b2e80b9587dbf329bc262b3c8ba9
config: if read-only, refuse to save the configuration

This restores the pre-1.0.0 behaviour. With the atomic vlcrc update,
VLC managed to work-around a read-only vlcrc. Indeed, Linux (POSIX?)
allows renaming a file onto an existing read-only file, which is
then replaced (both content and meta-data). In principle, you should
put the containing directory in read-only mode to avoid this, but this
is inconvenient as .config/vlc contains other files.
src/config/file.c