On Wed, 10 Feb 2016 19:49:44 +0000, Tim Woodall writes:
>However, should there be a way to
>make the invalid file handle point to a real file then it could be used
>to truncate an existing file on a filesystem.

restore creates its temporary files with O_CREAT|O_EXCL,
which makes that an atomic operation that ensures the filehandle
is never associated with anything but the expected temp file.

>Below is a patch that addresses this issue.

thanks for the patch; i'll apply it (or a variation thereof that
does a seek to desired length, then truncates) sometime in the next days
and (finally...) do a bit of work on some of the other outstanding
issues in dump.

regards
az


-- 
Alexander Zangerl + GPG Key 0xB963BD5F + http://snafu.priv.at/
Cmdmt. XI: Thou shalt not inflict upon me thy useless prattlings, for
I thy God am a busy God. -- Joe Thompson

Attachment: signature.asc
Description: Digital Signature

Reply via email to