Mercurial > hg > dhcpcd
changeset 5060:4539ffcdd656 draft
spelling: Correct both privilege and separation
Found by Arfrever.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Mon, 10 Feb 2020 13:26:30 +0000 |
| parents | bd0bfd64aa0e |
| children | fb7a5f752a0f |
| files | 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 |
| diffstat | 16 files changed, 17 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/README.md Sun Feb 09 18:54:29 2020 +0000 +++ b/README.md Mon Feb 10 13:26:30 2020 +0000 @@ -90,7 +90,7 @@ `/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.
--- a/configure Sun Feb 09 18:54:29 2020 +0000 +++ b/configure Mon Feb 10 13:26:30 2020 +0000 @@ -530,7 +530,7 @@ 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;;
--- a/hooks/50-ntp.conf Sun Feb 09 18:54:29 2020 +0000 +++ b/hooks/50-ntp.conf Mon Feb 10 13:26:30 2020 +0000 @@ -41,7 +41,7 @@ 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
--- a/src/control.c Sun Feb 09 18:54:29 2020 +0000 +++ b/src/control.c Mon Feb 10 13:26:30 2020 +0000 @@ -255,7 +255,7 @@ 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);
--- a/src/dhcpcd.c Sun Feb 09 18:54:29 2020 +0000 +++ b/src/dhcpcd.c Mon Feb 10 13:26:30 2020 +0000 @@ -1489,7 +1489,7 @@ 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;
--- a/src/privsep-bpf.c Sun Feb 09 18:54:29 2020 +0000 +++ b/src/privsep-bpf.c Mon Feb 10 13:26:30 2020 +0000 @@ -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
--- a/src/privsep-bpf.h Sun Feb 09 18:54:29 2020 +0000 +++ b/src/privsep-bpf.h Mon Feb 10 13:26:30 2020 +0000 @@ -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
--- a/src/privsep-bsd.c Sun Feb 09 18:54:29 2020 +0000 +++ b/src/privsep-bsd.c Mon Feb 10 13:26:30 2020 +0000 @@ -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
--- a/src/privsep-inet.c Sun Feb 09 18:54:29 2020 +0000 +++ b/src/privsep-inet.c Mon Feb 10 13:26:30 2020 +0000 @@ -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
--- a/src/privsep-inet.h Sun Feb 09 18:54:29 2020 +0000 +++ b/src/privsep-inet.h Mon Feb 10 13:26:30 2020 +0000 @@ -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
--- a/src/privsep-linux.c Sun Feb 09 18:54:29 2020 +0000 +++ b/src/privsep-linux.c Mon Feb 10 13:26:30 2020 +0000 @@ -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
--- a/src/privsep-root.c Sun Feb 09 18:54:29 2020 +0000 +++ b/src/privsep-root.c Mon Feb 10 13:26:30 2020 +0000 @@ -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
--- a/src/privsep-root.h Sun Feb 09 18:54:29 2020 +0000 +++ b/src/privsep-root.h Mon Feb 10 13:26:30 2020 +0000 @@ -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
--- a/src/privsep-sun.c Sun Feb 09 18:54:29 2020 +0000 +++ b/src/privsep-sun.c Mon Feb 10 13:26:30 2020 +0000 @@ -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
--- a/src/privsep.c Sun Feb 09 18:54:29 2020 +0000 +++ b/src/privsep.c Mon Feb 10 13:26:30 2020 +0000 @@ -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 @@ 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);
--- a/src/privsep.h Sun Feb 09 18:54:29 2020 +0000 +++ b/src/privsep.h Mon Feb 10 13:26:30 2020 +0000 @@ -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
