NetBSD-Bugs archive

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

Re: bin/14214: mtree gets confused with symlinks



The following reply was made to PR bin/14214; it has been noted by GNATS.

From: David Holland <dholland%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/14214: mtree gets confused with symlinks
Date: Tue, 24 Mar 2009 13:29:42 +0000

 (This was sent to gnats-admin instead of gnats-bugs.)
 
 From: Steven Drake <sbd%users.sf.net@localhost>
 To: gnats-admin%NetBSD.org@localhost
 Subject: PR bin/14214: mtree gets confused with symlinks
 Date: Tue, 24 Mar 2009 23:56:30 +1300 (NZDT)
 
 This patch seams to fix the problem, but mtree will still exit with code 2.
 
 patch is against mtree-20081105 (pkgsrc-2008Q4)
      $NetBSD: verify.c,v 1.5 2008/11/06 02:14:52 jschauma Exp $  
 
 --- verify.c.orig
 +++ verify.c
 @@ -148,7 +148,10 @@ vwalk(void)
                                 ep->flags |= F_VISIT;
                                 if (compare(ep, p))
                                         rval = MISMATCHEXIT;
 -                               if (!(ep->flags & F_IGN) &&
 +                               if (ep->type == F_DIR && 
 +                                   p->fts_info == FTS_SL ) {
 +                                       fts_set(t, p, FTS_FOLLOW);
 +                               } else if (!(ep->flags & F_IGN) &&
                                     ep->type == F_DIR &&
                                     p->fts_info == FTS_D) {
                                         if (ep->child) {
 
 


Home | Main Index | Thread Index | Old Index