When an mtree spec file omits a parent directory, "missing directory in
specification", instead of "no such file or directory".
This commit is contained in:
parent
27b54bd918
commit
6e9108295a
|
@ -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
|
* Copyright (c) 1989, 1993
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)spec.c 8.2 (Berkeley) 4/28/95";
|
static char sccsid[] = "@(#)spec.c 8.2 (Berkeley) 4/28/95";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ noparent: mtree_err("no parent node");
|
||||||
}
|
}
|
||||||
if (cur == NULL || cur->type != F_DIR) {
|
if (cur == NULL || cur->type != F_DIR) {
|
||||||
mtree_err("%s: %s", tname,
|
mtree_err("%s: %s", tname,
|
||||||
strerror(ENOENT));
|
"missing directory in specification");
|
||||||
}
|
}
|
||||||
*e = '/';
|
*e = '/';
|
||||||
pathparent = cur;
|
pathparent = cur;
|
||||||
|
|
Loading…
Reference in New Issue