From 1d0b3c1590e08fe914583ef7f693cab02fbd622a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 2 Jun 2008 22:29:15 +0000 Subject: [PATCH] ported back a change from Tracker FSUtils.cpp git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25771 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/installer/FSUtils.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/apps/installer/FSUtils.cpp b/src/apps/installer/FSUtils.cpp index 1379a9b4b8..645f30ed23 100644 --- a/src/apps/installer/FSUtils.cpp +++ b/src/apps/installer/FSUtils.cpp @@ -1146,6 +1146,11 @@ CopyAttributes(CopyLoopControl *control, BNode *srcNode, BNode *destNode, void * continue; } + // Special case for a size 0 attribute. It wouldn't be written at all + // otherwise. + if (info.size == 0) + destNode->WriteAttr(name, info.type, 0, buffer, 0); + ssize_t bytes; ssize_t numToRead = (ssize_t)info.size; for (off_t offset = 0; numToRead > 0; offset += bytes) {