mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
1734. [cleanup] 'rndc-confgen -a -t' remove extra '/' in path.
[RT #12588]
This commit is contained in:
parent
5ec95dc3cb
commit
c42ab597c4
2 changed files with 6 additions and 2 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
1734. [cleanup] 'rndc-confgen -a -t' remove extra '/' in path.
|
||||
[RT #12588]
|
||||
|
||||
1733. [placeholder] rt12658
|
||||
|
||||
1732. [placeholder] rt12467
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rndc-confgen.c,v 1.18 2004/03/05 04:58:20 marka Exp $ */
|
||||
/* $Id: rndc-confgen.c,v 1.19 2004/09/28 07:11:25 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -273,7 +273,8 @@ main(int argc, char **argv) {
|
|||
buf = isc_mem_get(mctx, len);
|
||||
if (buf == NULL)
|
||||
fatal("isc_mem_get(%d) failed\n", len);
|
||||
snprintf(buf, len, "%s/%s", chrootdir, keyfile);
|
||||
snprintf(buf, len, "%s%s%s", chrootdir,
|
||||
(*keyfile != '/') ? "/" : "", keyfile);
|
||||
|
||||
write_key_file(buf, user, keyname, &key_txtbuffer);
|
||||
isc_mem_put(mctx, buf, len);
|
||||
|
|
|
|||
Loading…
Reference in a new issue