diff options
author | neel <neel@FreeBSD.org> | 2014-09-27 22:15:50 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2014-09-27 22:15:50 +0000 |
commit | 09ab9e29373f2b48f72ff71789f6afc0e01c2c91 (patch) | |
tree | 946f5a62ce46b853d35291bd0a8f36622d72980b /usr.sbin | |
parent | 11f176f81434584587aa1973f46fae8948a837b2 (diff) | |
parent | 54f38c8738077e829c5528976a3269afc01ff7ee (diff) | |
download | FreeBSD-src-09ab9e29373f2b48f72ff71789f6afc0e01c2c91.zip FreeBSD-src-09ab9e29373f2b48f72ff71789f6afc0e01c2c91.tar.gz |
IFC @r272185
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/autofs/common.c | 12 | ||||
-rw-r--r-- | usr.sbin/bhyve/smbiostbl.c | 2 | ||||
-rwxr-xr-x | usr.sbin/bsdinstall/scripts/services | 1 | ||||
-rw-r--r-- | usr.sbin/newsyslog/newsyslog.8 | 3 |
4 files changed, 15 insertions, 3 deletions
diff --git a/usr.sbin/autofs/common.c b/usr.sbin/autofs/common.c index 1d1117c..cefbcc8 100644 --- a/usr.sbin/autofs/common.c +++ b/usr.sbin/autofs/common.c @@ -673,11 +673,21 @@ node_find(struct node *node, const char *path) { struct node *child, *found; char *tmp; + size_t tmplen; //log_debugx("looking up %s in %s", path, node->n_key); tmp = node_path(node); - if (strncmp(tmp, path, strlen(tmp)) != 0) { + tmplen = strlen(tmp); + if (strncmp(tmp, path, tmplen) != 0) { + free(tmp); + return (NULL); + } + if (path[tmplen] != '/' && path[tmplen] != '\0') { + /* + * If we have two map entries like 'foo' and 'foobar', make + * sure the search for 'foobar' won't match 'foo' instead. + */ free(tmp); return (NULL); } diff --git a/usr.sbin/bhyve/smbiostbl.c b/usr.sbin/bhyve/smbiostbl.c index 28c7eb2..59a1358 100644 --- a/usr.sbin/bhyve/smbiostbl.c +++ b/usr.sbin/bhyve/smbiostbl.c @@ -737,7 +737,7 @@ smbios_ep_initializer(struct smbios_entry_point *smbios_ep, uint32_t staddr) smbios_ep->eplen = 0x1F; assert(sizeof (struct smbios_entry_point) == smbios_ep->eplen); smbios_ep->major = 2; - smbios_ep->minor = 4; + smbios_ep->minor = 6; smbios_ep->revision = 0; memcpy(smbios_ep->ianchor, SMBIOS_ENTRY_IANCHOR, SMBIOS_ENTRY_IANCHORLEN); diff --git a/usr.sbin/bsdinstall/scripts/services b/usr.sbin/bsdinstall/scripts/services index 54c5018..83786c2 100755 --- a/usr.sbin/bsdinstall/scripts/services +++ b/usr.sbin/bsdinstall/scripts/services @@ -43,6 +43,7 @@ DAEMONS=$( dialog --backtitle "FreeBSD Installer" \ --title "System Configuration" --nocancel --separate-output \ --checklist "Choose the services you would like to be started at boot:" \ 0 0 0 \ + local_unbound "Local caching validating resolver" ${local_unbound:-off} \ sshd "Secure shell daemon" ${sshd_enable:-off} \ moused "PS/2 mouse pointer on console" ${moused_enable:-off} \ ntpd "Synchronize system and network time" ${ntpd_enable:-off} \ diff --git a/usr.sbin/newsyslog/newsyslog.8 b/usr.sbin/newsyslog/newsyslog.8 index e6d79a4..ba3db8a 100644 --- a/usr.sbin/newsyslog/newsyslog.8 +++ b/usr.sbin/newsyslog/newsyslog.8 @@ -17,7 +17,7 @@ .\" the suitability of this software for any purpose. It is .\" provided "as is" without express or implied warranty. .\" -.Dd May 19, 2014 +.Dd September 23, 2014 .Dt NEWSYSLOG 8 .Os .Sh NAME @@ -156,6 +156,7 @@ will create the .Dq rotated logfiles using the specified time format instead of the default sequential filenames. +The filename used will be kept until it is deleted. The time format is described in the .Xr strftime 3 manual page. |