Undo accidental file mode changes.
Partition.cpp: fix function prototype.