r23980: Fix one more use of pwrite in expand_file.