[PATCH v10 3/4] server: Open file read-only when writing only attributes.