From: Roy Marples Date: Mon, 10 Feb 2020 13:26:30 +0000 (+0000) Subject: spelling: Correct both privilege and separation X-Git-Tag: v9.0.0~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=754f62b6b3dfb2fbd508a5a949c4cfeb3134885c;p=thirdparty%2Fdhcpcd.git spelling: Correct both privilege and separation Found by Arfrever. --- diff --git a/README.md b/README.md index 427d4d3b..182aa46b 100644 --- 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. diff --git a/configure b/configure index 56d2cac9..269b802a 100755 --- 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;; diff --git a/hooks/50-ntp.conf b/hooks/50-ntp.conf index 4b68f777..fd394518 100644 --- a/hooks/50-ntp.conf +++ b/hooks/50-ntp.conf @@ -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 diff --git a/src/control.c b/src/control.c index 2f10bc35..42a8ab9c 100644 --- a/src/control.c +++ b/src/control.c @@ -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); diff --git a/src/dhcpcd.c b/src/dhcpcd.c index 46564d01..4e3bf076 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -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; diff --git a/src/privsep-bpf.c b/src/privsep-bpf.c index e5e9ad2b..035fe1b7 100644 --- a/src/privsep-bpf.c +++ b/src/privsep-bpf.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Priviledge Separation BPF Initiator + * Privilege Separation BPF Initiator * Copyright (c) 2006-2020 Roy Marples * All rights reserved diff --git a/src/privsep-bpf.h b/src/privsep-bpf.h index 68257b9f..b03900f5 100644 --- a/src/privsep-bpf.h +++ b/src/privsep-bpf.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Priviledge Seperation for dhcpcd + * Privilege Separation for dhcpcd * Copyright (c) 2006-2020 Roy Marples * All rights reserved diff --git a/src/privsep-bsd.c b/src/privsep-bsd.c index 9bcca3f7..1cd91c8f 100644 --- a/src/privsep-bsd.c +++ b/src/privsep-bsd.c @@ -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 * All rights reserved diff --git a/src/privsep-inet.c b/src/privsep-inet.c index 01761eb2..0cf50b42 100644 --- a/src/privsep-inet.c +++ b/src/privsep-inet.c @@ -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 * All rights reserved diff --git a/src/privsep-inet.h b/src/privsep-inet.h index 70a0922f..4d06ca08 100644 --- a/src/privsep-inet.h +++ b/src/privsep-inet.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Priviledge Seperation for dhcpcd + * Privilege Separation for dhcpcd * Copyright (c) 2006-2020 Roy Marples * All rights reserved diff --git a/src/privsep-linux.c b/src/privsep-linux.c index cb876d1e..4321f361 100644 --- a/src/privsep-linux.c +++ b/src/privsep-linux.c @@ -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 * All rights reserved diff --git a/src/privsep-root.c b/src/privsep-root.c index 71b4bebb..f88f56dd 100644 --- a/src/privsep-root.c +++ b/src/privsep-root.c @@ -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 * All rights reserved diff --git a/src/privsep-root.h b/src/privsep-root.h index 5a9a0130..43727593 100644 --- a/src/privsep-root.h +++ b/src/privsep-root.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Priviledge Seperation for dhcpcd + * Privilege Separation for dhcpcd * Copyright (c) 2006-2020 Roy Marples * All rights reserved diff --git a/src/privsep-sun.c b/src/privsep-sun.c index b679818a..aa5e0e93 100644 --- a/src/privsep-sun.c +++ b/src/privsep-sun.c @@ -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 * All rights reserved diff --git a/src/privsep.c b/src/privsep.c index d3dfd503..a188d7d7 100644 --- a/src/privsep.c +++ b/src/privsep.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Priviledge Separation for dhcpcd + * Privilege Separation for dhcpcd * Copyright (c) 2006-2020 Roy Marples * 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); diff --git a/src/privsep.h b/src/privsep.h index 8372c0e5..9cdbb265 100644 --- a/src/privsep.h +++ b/src/privsep.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: BSD-2-Clause */ /* - * Priviledge Seperation for dhcpcd + * Privilege Separation for dhcpcd * Copyright (c) 2006-2020 Roy Marples * All rights reserved