summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1997-04-03 11:24:59 +0000
committerobrien <obrien@FreeBSD.org>1997-04-03 11:24:59 +0000
commit38e82dbbff92f44e8a02412d23eab429d301a628 (patch)
treef53ed85f0317f8816094185a3dae1ec3009f19dd /contrib
parent53af8e0438c951a708dac03a7a32d2a049f34c85 (diff)
downloadFreeBSD-src-38e82dbbff92f44e8a02412d23eab429d301a628.zip
FreeBSD-src-38e82dbbff92f44e8a02412d23eab429d301a628.tar.gz
Fix bug that can cuase a loop to become endless.
The bug is triggered by attempts to copy in (-i) a file which happens to have zero length.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/cpio/copyin.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/contrib/cpio/copyin.c b/contrib/cpio/copyin.c
index 2008c39..bfb9536 100644
--- a/contrib/cpio/copyin.c
+++ b/contrib/cpio/copyin.c
@@ -1321,7 +1321,6 @@ create_final_defers ()
for (d = deferments; d != NULL; d = d->next)
{
- d = deferments;
link_res = link_to_maj_min_ino (d->header.c_name,
d->header.c_dev_maj, d->header.c_dev_maj,
d->header.c_ino);
OpenPOWER on IntegriCloud