Module Name:    src
Committed By:   apb
Date:           Sat Apr 11 14:32:52 UTC 2009

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

Log Message:
When an mtree spec file omits a parent directory, "missing directory in
specification", instead of "no such file or directory".


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/usr.sbin/mtree/spec.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/spec.c
diff -u src/usr.sbin/mtree/spec.c:1.74 src/usr.sbin/mtree/spec.c:1.75
--- src/usr.sbin/mtree/spec.c:1.74	Wed Apr  8 19:03:13 2009
+++ src/usr.sbin/mtree/spec.c	Sat Apr 11 14:32:51 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: spec.c,v 1.74 2009/04/08 19:03:13 apb Exp $	*/
+/*	$NetBSD: spec.c,v 1.75 2009/04/11 14:32:51 apb Exp $	*/
 
 /*-
  * Copyright (c) 1989, 1993
@@ -67,7 +67,7 @@
 #if 0
 static char sccsid[] = "@(#)spec.c	8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: spec.c,v 1.74 2009/04/08 19:03:13 apb Exp $");
+__RCSID("$NetBSD: spec.c,v 1.75 2009/04/11 14:32:51 apb Exp $");
 #endif
 #endif /* not lint */
 
@@ -190,7 +190,7 @@
 				}
 				if (cur == NULL || cur->type != F_DIR) {
 					mtree_err("%s: %s", tname,
-					    strerror(ENOENT));
+					"missing directory in specification");
 				}
 				*e = '/';
 				pathparent = cur;

Reply via email to