Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
packing_append_tree(): Handle a few more file type cases.
Will Andrews committed 14 years ago
commit 726e3ad5e4157a6a42b9882e0b685cf3675be142
parent 8297630
1 file changed +5 -1
modified libpkg/packing.c
@@ -155,8 +155,11 @@ packing_append_tree(struct packing *pack, const char *treepath, const char *newr
	sb = sbuf_new_auto();
	while ((fts_e = fts_read(fts)) != NULL) {
		switch(fts_e->fts_info) {
-
		case FTS_F:
		case FTS_D:
+
		case FTS_DEFAULT:
+
		case FTS_F:
+
		case FTS_SL:
+
		case FTS_SLNONE:
			 /* Skip entries that are shorter than the tree itself */
			 if (fts_e->fts_pathlen <= treelen)
				  break;
@@ -168,6 +171,7 @@ packing_append_tree(struct packing *pack, const char *treepath, const char *newr
			 sbuf_finish(sb);
			 packing_append_file(pack, fts_e->fts_name, sbuf_get(sb));
			 break;
+
		case FTS_DC:
		case FTS_DNR:
		case FTS_ERR:
		case FTS_NS: