mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
Minor cleanup in dnssec-* tools
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* 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 */
|
/*! \file */
|
||||||
|
|
||||||
@@ -190,7 +190,7 @@ main(int argc, char **argv) {
|
|||||||
directory = isc_commandline_argument;
|
directory = isc_commandline_argument;
|
||||||
ret = try_dir(directory);
|
ret = try_dir(directory);
|
||||||
if (ret != ISC_R_SUCCESS)
|
if (ret != ISC_R_SUCCESS)
|
||||||
fatal("Cannot write to directory %s: %s",
|
fatal("cannot open directory %s: %s",
|
||||||
directory, isc_result_totext(ret));
|
directory, isc_result_totext(ret));
|
||||||
break;
|
break;
|
||||||
case 'k':
|
case 'k':
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* 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 */
|
/*! \file */
|
||||||
|
|
||||||
@@ -310,7 +310,7 @@ main(int argc, char **argv) {
|
|||||||
directory = isc_commandline_argument;
|
directory = isc_commandline_argument;
|
||||||
ret = try_dir(directory);
|
ret = try_dir(directory);
|
||||||
if (ret != ISC_R_SUCCESS)
|
if (ret != ISC_R_SUCCESS)
|
||||||
fatal("cannot write to directory %s: %s",
|
fatal("cannot open directory %s: %s",
|
||||||
directory, isc_result_totext(ret));
|
directory, isc_result_totext(ret));
|
||||||
break;
|
break;
|
||||||
case 'k':
|
case 'k':
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* 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 */
|
/*! \file */
|
||||||
|
|
||||||
@@ -156,8 +156,12 @@ main(int argc, char **argv) {
|
|||||||
if (dir != NULL) {
|
if (dir != NULL) {
|
||||||
filename = argv[isc_commandline_index];
|
filename = argv[isc_commandline_index];
|
||||||
} else {
|
} else {
|
||||||
isc_file_splitpath(mctx, argv[isc_commandline_index],
|
result = isc_file_splitpath(mctx, argv[isc_commandline_index],
|
||||||
&dir, &filename);
|
&dir, &filename);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
fatal("cannot process filename %s: %s",
|
||||||
|
argv[isc_commandline_index],
|
||||||
|
isc_result_totext(result));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ectx == NULL)
|
if (ectx == NULL)
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* 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 */
|
/*! \file */
|
||||||
|
|
||||||
@@ -317,8 +317,12 @@ main(int argc, char **argv) {
|
|||||||
if (directory != NULL) {
|
if (directory != NULL) {
|
||||||
filename = argv[isc_commandline_index];
|
filename = argv[isc_commandline_index];
|
||||||
} else {
|
} else {
|
||||||
isc_file_splitpath(mctx, argv[isc_commandline_index],
|
result = isc_file_splitpath(mctx, argv[isc_commandline_index],
|
||||||
&directory, &filename);
|
&directory, &filename);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
fatal("cannot process filename %s: %s",
|
||||||
|
argv[isc_commandline_index],
|
||||||
|
isc_result_totext(result));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ectx == NULL)
|
if (ectx == NULL)
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* 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 */
|
/*! \file */
|
||||||
|
|
||||||
@@ -3343,7 +3343,7 @@ main(int argc, char *argv[]) {
|
|||||||
fatal("DS directory must be non-empty string");
|
fatal("DS directory must be non-empty string");
|
||||||
result = try_dir(dsdir);
|
result = try_dir(dsdir);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
fatal("Cannot write to directory %s: %s",
|
fatal("cannot open directory %s: %s",
|
||||||
dsdir, isc_result_totext(result));
|
dsdir, isc_result_totext(result));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user