Fix the way system files are handled at surf startup.
authorQuentin Rameau <quinq@fifth.space>
Tue, 13 Oct 2015 19:39:01 +0000 (21:39 +0200)
committerChristoph Lohmann <20h@r-36.net>
Tue, 13 Oct 2015 19:45:14 +0000 (21:45 +0200)
commit8a898ec4dfc7068656681ec94a04f8ed3ebe3b2d
tree83f87fed871a0d47bb03d63d05051347a1e10afa
parent1554354f1689c2205a809e23d29c9e21d38e0be5
Fix the way system files are handled at surf startup.

1. Do not chmod existing directories.
2. Fix the handling of tilde expansion in paths, don't expand ~foo to
   $HOME/foo but to foo's home directory.
3. Separate the creation of files and directories. We don't have to
   worry anymore about pathnames having to end with a '/' to be correctly
   handled.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
surf.c