summaryrefslogtreecommitdiff
path: root/build/pack.c
diff options
context:
space:
mode:
authorroot <devnull@localhost>1996-06-28 21:13:13 +0000
committerroot <devnull@localhost>1996-06-28 21:13:13 +0000
commit92ea12597b906cbe996c62621ad432c6bd7110fb (patch)
tree20dd88022505c3e1b35ee67d47386910e06750d6 /build/pack.c
parentdbb11ff0d3738a93fd8cdb4f7e1352289304b114 (diff)
downloadrpm-92ea12597b906cbe996c62621ad432c6bd7110fb.tar.gz
rpm-92ea12597b906cbe996c62621ad432c6bd7110fb.tar.bz2
rpm-92ea12597b906cbe996c62621ad432c6bd7110fb.zip
skip ALL leading slashes :-)
CVS patchset: 705 CVS date: 1996/06/28 21:13:13
Diffstat (limited to 'build/pack.c')
-rw-r--r--build/pack.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/pack.c b/build/pack.c
index 726d26b9c..9de6a0339 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -490,7 +490,9 @@ int packageBinaries(Spec s, char *passPhrase)
cpioFileList = newStringBuf();
while (count--) {
file = *farray++;
- file++; /* Skip leading "/" */
+ while (*file == '/') {
+ file++; /* Skip leading "/" */
+ }
appendLineStringBuf(cpioFileList, file);
}