/*
- * $Id: store_rebuild.cc,v 1.52 1998/10/09 17:46:37 wessels Exp $
+ * $Id: store_rebuild.cc,v 1.53 1998/12/02 05:07:25 wessels Exp $
*
* DEBUG: section 20 Store Rebuild Routines
* AUTHOR: Duane Wessels
file_close(fd);
fd = -1;
swap_hdr_len = 0;
+#if USE_TRUNCATE_NOT_UNLINK
+ if (sb.st_size == 0)
+ continue;
+#endif
tlv_list = storeSwapMetaUnpack(hdr_buf, &swap_hdr_len);
if (tlv_list == NULL) {
debug(20, 1) ("storeRebuildFromDirectory: failed to get meta data\n");
/*
- * $Id: unlinkd.cc,v 1.28 1998/09/15 19:38:06 wessels Exp $
+ * $Id: unlinkd.cc,v 1.29 1998/12/02 05:07:26 wessels Exp $
*
* DEBUG: section 12 Unlink Daemon
* AUTHOR: Duane Wessels
while (fgets(buf, UNLINK_BUF_LEN, stdin)) {
if ((t = strchr(buf, '\n')))
*t = '\0';
+#if USE_TRUNCATE_NOT_UNLINK
+ truncate(buf, 0);
+#else
unlink(buf);
+#endif
}
exit(0);
}