Undo file mode changes.