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

Minor cleanup in dnssec-* tools

This commit is contained in:
Evan Hunt
2009-10-27 18:56:49 +00:00
parent 312a00fb75
commit e3b59e4af7
5 changed files with 20 additions and 12 deletions

View File

@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-keyfromlabel.c,v 1.24 2009/10/24 00:00:06 each Exp $ */
/* $Id: dnssec-keyfromlabel.c,v 1.25 2009/10/27 18:56:48 each Exp $ */
/*! \file */
@@ -190,7 +190,7 @@ main(int argc, char **argv) {
directory = isc_commandline_argument;
ret = try_dir(directory);
if (ret != ISC_R_SUCCESS)
fatal("Cannot write to directory %s: %s",
fatal("cannot open directory %s: %s",
directory, isc_result_totext(ret));
break;
case 'k':

View File

@@ -29,7 +29,7 @@
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-keygen.c,v 1.104 2009/10/24 09:46:18 fdupont Exp $ */
/* $Id: dnssec-keygen.c,v 1.105 2009/10/27 18:56:48 each Exp $ */
/*! \file */
@@ -310,7 +310,7 @@ main(int argc, char **argv) {
directory = isc_commandline_argument;
ret = try_dir(directory);
if (ret != ISC_R_SUCCESS)
fatal("cannot write to directory %s: %s",
fatal("cannot open directory %s: %s",
directory, isc_result_totext(ret));
break;
case 'k':

View File

@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-revoke.c,v 1.17 2009/10/26 21:18:24 each Exp $ */
/* $Id: dnssec-revoke.c,v 1.18 2009/10/27 18:56:48 each Exp $ */
/*! \file */
@@ -156,8 +156,12 @@ main(int argc, char **argv) {
if (dir != NULL) {
filename = argv[isc_commandline_index];
} else {
isc_file_splitpath(mctx, argv[isc_commandline_index],
&dir, &filename);
result = isc_file_splitpath(mctx, argv[isc_commandline_index],
&dir, &filename);
if (result != ISC_R_SUCCESS)
fatal("cannot process filename %s: %s",
argv[isc_commandline_index],
isc_result_totext(result));
}
if (ectx == NULL)

View File

@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-settime.c,v 1.18 2009/10/26 21:18:24 each Exp $ */
/* $Id: dnssec-settime.c,v 1.19 2009/10/27 18:56:49 each Exp $ */
/*! \file */
@@ -317,8 +317,12 @@ main(int argc, char **argv) {
if (directory != NULL) {
filename = argv[isc_commandline_index];
} else {
isc_file_splitpath(mctx, argv[isc_commandline_index],
&directory, &filename);
result = isc_file_splitpath(mctx, argv[isc_commandline_index],
&directory, &filename);
if (result != ISC_R_SUCCESS)
fatal("cannot process filename %s: %s",
argv[isc_commandline_index],
isc_result_totext(result));
}
if (ectx == NULL)

View File

@@ -29,7 +29,7 @@
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-signzone.c,v 1.250 2009/10/27 04:46:58 marka Exp $ */
/* $Id: dnssec-signzone.c,v 1.251 2009/10/27 18:56:49 each Exp $ */
/*! \file */
@@ -3343,7 +3343,7 @@ main(int argc, char *argv[]) {
fatal("DS directory must be non-empty string");
result = try_dir(dsdir);
if (result != ISC_R_SUCCESS)
fatal("Cannot write to directory %s: %s",
fatal("cannot open directory %s: %s",
dsdir, isc_result_totext(result));
break;