diff options
author | root <devnull@localhost> | 1996-06-28 21:13:13 +0000 |
---|---|---|
committer | root <devnull@localhost> | 1996-06-28 21:13:13 +0000 |
commit | 92ea12597b906cbe996c62621ad432c6bd7110fb (patch) | |
tree | 20dd88022505c3e1b35ee67d47386910e06750d6 /build/pack.c | |
parent | dbb11ff0d3738a93fd8cdb4f7e1352289304b114 (diff) | |
download | rpm-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.c | 4 |
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); } |