Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/pax ignore files that contain "..", not symlink sources.



details:   https://anonhg.NetBSD.org/src/rev/ac7b740e265a
branches:  trunk
changeset: 538626:ac7b740e265a
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 23 19:39:42 2002 +0000

description:
ignore files that contain "..", not symlink sources.

diffstat:

 bin/pax/pat_rep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 36b765e5c72b -r ac7b740e265a bin/pax/pat_rep.c
--- a/bin/pax/pat_rep.c Wed Oct 23 14:57:15 2002 +0000
+++ b/bin/pax/pat_rep.c Wed Oct 23 19:39:42 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pat_rep.c,v 1.15 2002/10/15 16:16:30 christos Exp $    */
+/*     $NetBSD: pat_rep.c,v 1.16 2002/10/23 19:39:42 christos Exp $    */
 
 /*-
  * Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)pat_rep.c  8.2 (Berkeley) 4/18/94";
 #else
-__RCSID("$NetBSD: pat_rep.c,v 1.15 2002/10/15 16:16:30 christos Exp $");
+__RCSID("$NetBSD: pat_rep.c,v 1.16 2002/10/23 19:39:42 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -677,11 +677,13 @@
                                arcn->name);
                        return 1;
                }
+#ifdef notdef
                if (checkdotdot(arcn->ln_name)) {
                        tty_warn(0, "Ignoring link containing `..' (%s)",
                                arcn->ln_name);
                        return 1;
                }
+#endif
        }
 
        /*



Home | Main Index | Thread Index | Old Index