unpack: don't overwrite files by default.

--HG--
extra : convert_revision : 874850b5d5adbb570c93e963c6c0a4504cbd8c80
This commit is contained in:
Juan RP 2009-02-16 21:42:03 +01:00
parent 82b01212ad
commit ee73775ed5

View file

@ -144,7 +144,7 @@ unpack_archive_init(prop_dictionary_t pkg, const char *destdir,
*/
#define EXTRACT_FLAGS ARCHIVE_EXTRACT_SECURE_NODOTDOT | \
ARCHIVE_EXTRACT_SECURE_SYMLINKS | \
ARCHIVE_EXTRACT_UNLINK
ARCHIVE_EXTRACT_UNLINK | ARCHIVE_EXTRACT_NO_OVERWRITE
#define FEXTRACT_FLAGS ARCHIVE_EXTRACT_OWNER | ARCHIVE_EXTRACT_PERM | \
ARCHIVE_EXTRACT_TIME | EXTRACT_FLAGS