[PATCH 5/6] server: Fix up executable permissions when renaming files.