From 051306e25da219bedb0d24eaa78b118b7b5c0925 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 31 Mar 2003 20:30:28 +0000 Subject: [PATCH] PR/18959: Xavier HUMBERT: Don't pay attention to sockets in gnu-tar mode. --- bin/pax/tar.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/pax/tar.c b/bin/pax/tar.c index 578a60d96471..5ec176ce3ff8 100644 --- a/bin/pax/tar.c +++ b/bin/pax/tar.c @@ -1,4 +1,4 @@ -/* $NetBSD: tar.c,v 1.37 2003/03/31 20:06:33 christos Exp $ */ +/* $NetBSD: tar.c,v 1.38 2003/03/31 20:30:28 christos Exp $ */ /*- * Copyright (c) 1992 Keith Muller. @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)tar.c 8.2 (Berkeley) 4/18/94"; #else -__RCSID("$NetBSD: tar.c,v 1.37 2003/03/31 20:06:33 christos Exp $"); +__RCSID("$NetBSD: tar.c,v 1.38 2003/03/31 20:30:28 christos Exp $"); #endif #endif /* not lint */ @@ -999,7 +999,9 @@ ustar_wr(ARCHD *arcn) * check for those file system types ustar cannot store */ if (arcn->type == PAX_SCK) { - tty_warn(1, "Ustar cannot archive a socket %s", arcn->org_name); + if (!is_gnutar) + tty_warn(1, "Ustar cannot archive a socket %s", + arcn->org_name); return(1); }