]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
spelling: Correct both privilege and separation
authorRoy Marples <roy@marples.name>
Mon, 10 Feb 2020 13:26:30 +0000 (13:26 +0000)
committerRoy Marples <roy@marples.name>
Mon, 10 Feb 2020 13:26:30 +0000 (13:26 +0000)
Found by Arfrever.

16 files changed:
README.md
configure
hooks/50-ntp.conf
src/control.c
src/dhcpcd.c
src/privsep-bpf.c
src/privsep-bpf.h
src/privsep-bsd.c
src/privsep-inet.c
src/privsep-inet.h
src/privsep-linux.c
src/privsep-root.c
src/privsep-root.h
src/privsep-sun.c
src/privsep.c
src/privsep.h

index 427d4d3b95116bfa225ec243c09106f90a0878c0..182aa46bcd53c8754e8e4c781ca150db93f990a1 100644 (file)
--- a/README.md
+++ b/README.md
@@ -90,7 +90,7 @@ dhcpcd-7 defaults the database directory to `/var/db/dhcpcd` instead of
 `/var/db` and now stores dhcpcd.duid and dhcpcd.secret in there instead of
 in /etc.
 dhcpcd-9 requires this directory and contents to be writeable by the
-unpriviledged user (default _dhcpcd).
+unprivileged user (default _dhcpcd).
 The Makefile `_confinstall` target will attempt to move the files correctly from
 the old locations to the new locations.
 
index 56d2cac902d70f8a80f87e4fcb2831eda226d683..269b802a5cd85e119b46f48dd2f2bc1627ffd47a 100755 (executable)
--- a/configure
+++ b/configure
@@ -530,7 +530,7 @@ if [ -z "$AUTH" -o "$AUTH" = yes ]; then
 fi
 
 if [ -z "$PRIVSEP" ]; then
-       # priviledge separation works fine .... except on Solaris
+       # privilege separation works fine .... except on Solaris
        case "$OS" in
        solaris*|sunos*)        PRIVSEP=no;;
        *)                      PRIVSEP=yes;;
index 4b68f7776d0e11eb0f96bccee565b7bdd2739953..fd3945187e24af1b4cc0199769a92c7d7c0246ad 100644 (file)
@@ -41,7 +41,7 @@ if [ -z "$ntp_service" ]; then
        esac
 fi
 
-# Debian has a seperate file for DHCP config to avoid stamping on
+# Debian has a separate file for DHCP config to avoid stamping on
 # the master.
 if [ "$ntp_service" = ntpd ] && type invoke-rc.d >/dev/null 2>&1; then
        [ -e /var/lib/ntp ] || mkdir /var/lib/ntp
index 2f10bc35e3939782b22cc1ccff20fa7ba3d84ced..42a8ab9cc18b1a1bd41e3bd72187605eed53c88b 100644 (file)
@@ -255,7 +255,7 @@ control_start(struct dhcpcd_ctx *ctx, const char *ifname)
        eloop_event_add(ctx->eloop, fd, control_handle, ctx);
 
        if (ifname == NULL && (fd = control_start1(ctx, NULL, S_UNPRIV)) != -1){
-               /* We must be in master mode, so create an unpriviledged socket
+               /* We must be in master mode, so create an unprivileged socket
                 * to allow normal users to learn the status of dhcpcd. */
                ctx->control_unpriv_fd = fd;
                eloop_event_add(ctx->eloop, fd, control_handle_unpriv, ctx);
index 46564d013b7576124d16221355da310b65ba5df5..4e3bf07609b7a0370f61ad388a17af13844b91ae 100644 (file)
@@ -1489,7 +1489,7 @@ dhcpcd_handleargs(struct dhcpcd_ctx *ctx, struct fd_list *fd,
                return 0;
        }
 
-       /* Only priviledged users can control dhcpcd via the socket. */
+       /* Only privileged users can control dhcpcd via the socket. */
        if (fd->flags & FD_UNPRIV) {
                errno = EPERM;
                return -1;
index e5e9ad2b9537740060f245a8355fa5d6b4915921..035fe1b79e8b258844efa022f6999bbdad7b8539 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-2-Clause */
 /*
- * Priviledge Separation BPF Initiator
+ * Privilege Separation BPF Initiator
  * Copyright (c) 2006-2020 Roy Marples <roy@marples.name>
  * All rights reserved
 
index 68257b9f17a4ac3837a30074ac0bbf92b19398a7..b03900f5b15451c231b726d1ceda0e21daa0d570 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-2-Clause */
 /*
- * Priviledge Seperation for dhcpcd
+ * Privilege Separation for dhcpcd
  * Copyright (c) 2006-2020 Roy Marples <roy@marples.name>
  * All rights reserved
 
index 9bcca3f75c45ca92ddb72e5efc155fac96f955d9..1cd91c8fd4364cc1f876ad6941e0e6389341624f 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-2-Clause */
 /*
- * Priviledge Separation for dhcpcd, BSD driver
+ * Privilege Separation for dhcpcd, BSD driver
  * Copyright (c) 2006-2020 Roy Marples <roy@marples.name>
  * All rights reserved
 
index 01761eb2b7308042ecb1703a821875c50bf9faf4..0cf50b42242e409d1b3e8d834459e3df7fa5a3c8 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-2-Clause */
 /*
- * Priviledge Separation for dhcpcd, network proxy
+ * Privilege Separation for dhcpcd, network proxy
  * Copyright (c) 2006-2020 Roy Marples <roy@marples.name>
  * All rights reserved
 
index 70a0922fb467af4565669cbe27015ce23d019fa1..4d06ca0819902973c9a62649ca34ca70621f2ff5 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-2-Clause */
 /*
- * Priviledge Seperation for dhcpcd
+ * Privilege Separation for dhcpcd
  * Copyright (c) 2006-2020 Roy Marples <roy@marples.name>
  * All rights reserved
 
index cb876d1e9d28e195a488d2263c6d93ee2bfc6c3d..4321f3612d4296894cdda0c3f932e7c2b4c839b6 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-2-Clause */
 /*
- * Priviledge Separation for dhcpcd, Linux driver
+ * Privilege Separation for dhcpcd, Linux driver
  * Copyright (c) 2006-2020 Roy Marples <roy@marples.name>
  * All rights reserved
 
index 71b4bebb649950f49f3dae483633b626a3e90913..f88f56dd06dd6e66fce7af101ffb4d512178b3ec 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-2-Clause */
 /*
- * Priviledge Separation for dhcpcd, privileged actioneer
+ * Privilege Separation for dhcpcd, privileged actioneer
  * Copyright (c) 2006-2020 Roy Marples <roy@marples.name>
  * All rights reserved
 
index 5a9a0130085eef09db05bca3497a96eeccd58932..43727593a873006c3c44e955cd44efe8b6378a82 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-2-Clause */
 /*
- * Priviledge Seperation for dhcpcd
+ * Privilege Separation for dhcpcd
  * Copyright (c) 2006-2020 Roy Marples <roy@marples.name>
  * All rights reserved
 
index b679818ae16947ce92ebeb8a3dce880f33f1196d..aa5e0e93503f7ed6911e4153edafc8f024644356 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-2-Clause */
 /*
- * Priviledge Separation for dhcpcd, Solaris driver
+ * Privilege Separation for dhcpcd, Solaris driver
  * Copyright (c) 2006-2020 Roy Marples <roy@marples.name>
  * All rights reserved
 
index d3dfd503a30c64ffb62b8c43858c50001ac1dad9..a188d7d7899826e8d5b57075992fbd61060a41fe 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-2-Clause */
 /*
- * Priviledge Separation for dhcpcd
+ * Privilege Separation for dhcpcd
  * Copyright (c) 2006-2020 Roy Marples <roy@marples.name>
  * All rights reserved
 
@@ -346,7 +346,7 @@ ps_stop(struct dhcpcd_ctx *ctx)
                ret = r;
 
        /* We've been chrooted, so we need to tell the
-        * priviledged actioneer to remove the pidfile. */
+        * privileged actioneer to remove the pidfile. */
        ps_root_unlink(ctx, ctx->pidfile);
 
        r = ps_root_stop(ctx);
index 8372c0e5fb334194a70c8cccb84981c232bfda85..9cdbb265797d45444f090ce5a9825aa94bee89c9 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-2-Clause */
 /*
- * Priviledge Seperation for dhcpcd
+ * Privilege Separation for dhcpcd
  * Copyright (c) 2006-2020 Roy Marples <roy@marples.name>
  * All rights reserved