Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
From: Marc Espie (espiecvs.openbsd.org)
Date: Thu Dec 11 2008 - 09:43:19 CST
Module name: src
Changes by: espiecvs.openbsd.org 2008/12/11 08:43:19
copying local files may cause some issues, as noticed by sturm
Try really hard to avoid copying a file on itself: by first checking the
stat() results, and if they are not available (since some people use fucked-up
stuff like AFS), rely on the file names as a last resort.
This should avoid stuff getting copied from PKG_CACHE to PKG_CACHE and
erasing itself in a few cases...