feeds: follow symlinks of datafile and configfile
authorRaphaël Droz <raphael.droz+floss@gmail.com>
Fri, 20 Feb 2015 17:45:46 +0000 (09:45 -0800)
committerW. Trevor King <wking@tremily.us>
Thu, 26 Feb 2015 00:37:06 +0000 (16:37 -0800)
commit9b3bf149ac37d34279c71b388c22a67ef88a84a7
tree9b501089a994d852ce4284f08a31027b71570257
parent60870d9ff7f23441919df79d710ad49ecbcedf73
feeds: follow symlinks of datafile and configfile

Use case, configfile contains sensible data, and is in a specific
directory, and $XDG_CONFIG_HOME is a symlink. When configfile is saved
(rewritten + renamed), we want don't want to overwrite the symlink
itself but the original file.

The same applies for datafile.

Signed-off-by: Raphaël Droz <raphael.droz+floss@gmail.com>
Signed-off-by: W. Trevor King <wking@tremily.us>
rss2email/feeds.py