Defect Report #062

Submission Date: 19 Aug 93
Submittor: X3 Secretariat (USA)
Source: David J. Hendricksen
Question
If the only way to effectuate the renaming of a file on a given system is to copy the contents of the file, does an implementation conform to the C Standard by always returning a failure from the rename function? Footnote 113 would seem to imply this.
Response
Yes, subclause 7.9.4.2 permits the rename function to fail if it must copy the file contents, among other reasons.
Previous Defect Report < - > Next Defect Report