From afdca6b38f988707a9b1506ed80737238dd681f2 Mon Sep 17 00:00:00 2001 From: ewt Date: Tue, 9 Sep 1997 19:11:27 +0000 Subject: [PATCH] didn't package / properly CVS patchset: 1817 CVS date: 1997/09/09 19:11:27 --- CHANGES | 1 + build/pack.c | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 585ddff..9fa0a4e 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,7 @@ - had some wrong month lengths in changelog date parsing - updated fine-requires (Linux version) to add lines for shell scripts (Donnie Barnes) + - didn't package / properly 2.4.5 -> 2.4.6: - added os_canon entries for BSD/OS and NextStep diff --git a/build/pack.c b/build/pack.c index 51df4dd..4776748 100644 --- a/build/pack.c +++ b/build/pack.c @@ -219,9 +219,17 @@ static int cpio_gzip(int fd, char *tempdir, char *writePtr, numMappings = 0; while (chptr && *chptr) { cpioList[numMappings].fsPath = chptr; - cpioList[numMappings++].mapFlags = tempdir ? CPIO_FOLLOW_SYMLINKS : 0; + cpioList[numMappings].mapFlags = tempdir ? CPIO_FOLLOW_SYMLINKS : 0; + chptr = strchr(chptr, '\n'); if (chptr) *chptr++ = '\0'; + + /* hack */ + if (!strlen(cpioList[numMappings].fsPath)) { + cpioList[numMappings].fsPath = "."; + } + + numMappings++; } oldhandler = signal(SIGPIPE, SIG_IGN); -- 2.7.4