2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

2728. [bug] dnssec-keygen, dnssec-keyfromlabel and

dnssec-signzone now warn immediately if asked to
			write into a nonexistent directory. [RT #20278]
This commit is contained in:
Evan Hunt
2009-10-24 00:00:06 +00:00
parent 412b30659b
commit 8f0502e922
6 changed files with 38 additions and 8 deletions

View File

@@ -29,7 +29,7 @@
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-signzone.c,v 1.247 2009/10/13 23:48:12 tbox Exp $ */
/* $Id: dnssec-signzone.c,v 1.248 2009/10/24 00:00:06 each Exp $ */
/*! \file */
@@ -3274,6 +3274,10 @@ main(int argc, char *argv[]) {
dsdir = isc_commandline_argument;
if (strlen(dsdir) == 0U)
fatal("DS directory must be non-empty string");
result = try_dir(dsdir);
if (result != ISC_R_SUCCESS)
fatal("Cannot write to directory %s: %s",
dsdir, isc_result_totext(result));
break;
case 'E':