Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
638
Issues
638
List
Boards
Labels
Service Desk
Milestones
Merge Requests
105
Merge Requests
105
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
a769eca4
Commit
a769eca4
authored
Aug 06, 2001
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
document "rndc -k"
parent
907ec2c6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
19 deletions
+23
-19
bin/rndc/include/rndc/os.h
bin/rndc/include/rndc/os.h
+3
-8
bin/rndc/rndc.c
bin/rndc/rndc.c
+1
-6
bin/rndc/rndc.docbook
bin/rndc/rndc.docbook
+16
-1
bin/rndc/unix/os.c
bin/rndc/unix/os.c
+1
-2
bin/rndc/util.h
bin/rndc/util.h
+2
-2
No files found.
bin/rndc/include/rndc/os.h
View file @
a769eca4
...
...
@@ -2,7 +2,7 @@
* Copyright
*/
/* $Id: os.h,v 1.
2 2001/08/03 23:06:46 gson
Exp $ */
/* $Id: os.h,v 1.
3 2001/08/06 04:25:07 marka
Exp $ */
#ifndef RNDC_OS_H
#define RNDC_OS_H 1
...
...
@@ -10,17 +10,12 @@
#include <isc/lang.h>
#include <stdio.h>
/*
* OS specific paths that may be overriden at runtime by rndc_os_init().
*/
ISC_LANG_BEGINDECLS
FILE
*
safe_create
(
const
char
*
filename
);
/*
*
Create and open 'filename' for writing.
*
Return NULL if 'filename' already exists
.
*
Open 'filename' for writing, truncate if necessary. If the file was
*
created ensure that only the owner can read/write it
.
*/
int
set_user
(
FILE
*
fd
,
const
char
*
user
);
...
...
bin/rndc/rndc.c
View file @
a769eca4
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rndc.c,v 1.7
5 2001/08/03 05:56:1
3 marka Exp $ */
/* $Id: rndc.c,v 1.7
6 2001/08/06 04:25:0
3 marka Exp $ */
/*
* Principal Author: DCL
...
...
@@ -50,11 +50,6 @@
#include <isccc/types.h>
#include <isccc/util.h>
#if 0
#define RNDC_MAIN
#include <rndc/os.h>
#endif
#include "util.h"
#ifdef HAVE_ADDRINFO
...
...
bin/rndc/rndc.docbook
View file @
a769eca4
...
...
@@ -16,7 +16,7 @@
- WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: rndc.docbook,v 1.
6 2001/06/10 13:57:53 tale
Exp $ -->
<!-- $Id: rndc.docbook,v 1.
7 2001/08/06 04:25:04 marka
Exp $ -->
<refentry>
<refentryinfo>
...
...
@@ -38,6 +38,7 @@
<cmdsynopsis>
<command>
rndc
</command>
<arg><option>
-c
<replaceable
class=
"parameter"
>
config-file
</replaceable></option></arg>
<arg><option>
-k
<replaceable
class=
"parameter"
>
key-file
</replaceable></option></arg>
<arg><option>
-s
<replaceable
class=
"parameter"
>
server
</replaceable></option></arg>
<arg><option>
-p
<replaceable
class=
"parameter"
>
port
</replaceable></option></arg>
<arg><option>
-V
</option></arg>
...
...
@@ -91,6 +92,20 @@
</listitem>
</varlistentry>
<varlistentry>
<term>
-k
<replaceable
class=
"parameter"
>
key-file
</replaceable></term>
<listitem>
<para>
Use
<replaceable
class=
"parameter"
>
key-file
</replaceable>
as the key file instead of the default,
<filename>
/etc/rndc.key
</filename>
. The key in
<filename>
/etc/rndc.key
</filename>
will be used to authenticate
commands sent to the server if the
<replaceable
class=
"parameter"
>
config-file
</replaceable>
does not exist.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
-s
<replaceable
class=
"parameter"
>
server
</replaceable></term>
<listitem>
...
...
bin/rndc/unix/os.c
View file @
a769eca4
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: os.c,v 1.
2 2001/08/04 08:15:02
marka Exp $ */
/* $Id: os.c,v 1.
3 2001/08/06 04:25:08
marka Exp $ */
#include <config.h>
...
...
@@ -61,7 +61,6 @@ safe_create(const char *filename) {
fd
=
open
(
filename
,
flags
,
S_IRUSR
|
S_IWUSR
);
if
(
fd
==
-
1
)
return
(
NULL
);
(
void
)
fchmod
(
fd
,
S_IRUSR
|
S_IWUSR
);
f
=
fdopen
(
fd
,
"w"
);
if
(
f
==
NULL
)
close
(
fd
);
...
...
bin/rndc/util.h
View file @
a769eca4
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: util.h,v 1.
4 2001/07/17 20:29:19 gson
Exp $ */
/* $Id: util.h,v 1.
5 2001/08/06 04:25:05 marka
Exp $ */
#ifndef RNDC_UTIL_H
#define RNDC_UTIL_H 1
...
...
@@ -33,7 +33,7 @@
if (result != ISC_R_SUCCESS) \
fatal("%s: %s", name, isc_result_totext(result)); \
else \
notify(name); \
notify(
"%s",
name); \
} while (0)
ISC_LANG_BEGINDECLS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment