Don't write hardlinked file contents in sv4cpio mode.

This commit is contained in:
matt 2005-02-04 00:38:15 +00:00
parent b02c92c5bf
commit f57592cd95

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpio.c,v 1.17 2003/10/27 00:12:41 lukem Exp $ */
/* $NetBSD: cpio.c,v 1.18 2005/02/04 00:38:15 matt Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)cpio.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: cpio.c,v 1.17 2003/10/27 00:12:41 lukem Exp $");
__RCSID("$NetBSD: cpio.c,v 1.18 2005/02/04 00:38:15 matt Exp $");
#endif
#endif /* not lint */
@ -466,8 +466,7 @@ cpio_wr(ARCHD *arcn)
* if this file has data, we are done. The caller will write the file
* data, if we are link tell caller we are done, go to next file
*/
if ((arcn->type == PAX_CTG) || (arcn->type == PAX_REG) ||
(arcn->type == PAX_HRG))
if ((arcn->type == PAX_CTG) || (arcn->type == PAX_REG))
return(0);
if (arcn->type != PAX_SLK)
return(1);