[PATCH v2 3/4] server: Fix up executable permissions when renaming files.