Fix #31 and add new test case to reproduce it.

This commit is contained in:
Juan RP
2014-02-25 22:55:39 +01:00
parent a511292316
commit 8c47021ec3
5 changed files with 47 additions and 1 deletions

View File

@ -364,7 +364,7 @@ unpack_archive(struct xbps_handle *xhp,
if (!force && (entry_type == AE_IFREG)) {
buf = strchr(entry_pname, '.') + 1;
assert(buf != NULL);
if (file_exists) {
if (file_exists && S_ISREG(st.st_mode)) {
/*
* Handle configuration files. Check if current
* entry is a configuration file and take action