[PATCH] Incorrect mode for file reading