Module Name:    src
Committed By:   christos
Date:           Sun Mar 25 16:07:04 UTC 2012

Modified Files:
        src/usr.sbin/mtree: verify.c

Log Message:
PR/41061: Steven Drake: mtree -d complains about extra symlinks


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/usr.sbin/mtree/verify.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/mtree/verify.c
diff -u src/usr.sbin/mtree/verify.c:1.39 src/usr.sbin/mtree/verify.c:1.40
--- src/usr.sbin/mtree/verify.c:1.39	Sat Oct  7 11:35:51 2006
+++ src/usr.sbin/mtree/verify.c	Sun Mar 25 12:07:04 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: verify.c,v 1.39 2006/10/07 15:35:51 elad Exp $	*/
+/*	$NetBSD: verify.c,v 1.40 2012/03/25 16:07:04 christos Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)verify.c	8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: verify.c,v 1.39 2006/10/07 15:35:51 elad Exp $");
+__RCSID("$NetBSD: verify.c,v 1.40 2012/03/25 16:07:04 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -141,7 +141,7 @@ vwalk(void)
 		if (ep)
 			continue;
  extra:
-		if (!eflag) {
+		if (!eflag && !(dflag && p->fts_info == FTS_SL)) {
 			printf("extra: %s", RP(p));
 			if (rflag) {
 				if ((S_ISDIR(p->fts_statp->st_mode)

Reply via email to