From owner-svn-src-releng@freebsd.org Mon Sep 5 16:43:59 2016 Return-Path: Delivered-To: svn-src-releng@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 66BA6B96670; Mon, 5 Sep 2016 16:43:59 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1A48C902; Mon, 5 Sep 2016 16:43:59 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u85GhwS4075826; Mon, 5 Sep 2016 16:43:58 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u85GhwCv075824; Mon, 5 Sep 2016 16:43:58 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201609051643.u85GhwCv075824@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Mon, 5 Sep 2016 16:43:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org Subject: svn commit: r305427 - in releng/11.0/usr.sbin/cron: cron crontab X-SVN-Group: releng MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-releng@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the release engineering / security commits to the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2016 16:43:59 -0000 Author: emaste Date: Mon Sep 5 16:43:57 2016 New Revision: 305427 URL: https://svnweb.freebsd.org/changeset/base/305427 Log: MFS r305423: cron: use existing maximum username constant MAXLOGNAME Previously cron had its own maximum username length limit, which was smaller than the system's MAXLOGNAME. This could lead to crontab -u updating the wrong user's crontab (if the name was truncated, and matched another user). PR: 212305 Reported by: Andrii Kuzik Approved by: re (kib) MFH: r305269 Modified: releng/11.0/usr.sbin/cron/cron/cron.h releng/11.0/usr.sbin/cron/crontab/crontab.c Directory Properties: releng/11.0/ (props changed) Modified: releng/11.0/usr.sbin/cron/cron/cron.h ============================================================================== --- releng/11.0/usr.sbin/cron/cron/cron.h Mon Sep 5 16:06:52 2016 (r305426) +++ releng/11.0/usr.sbin/cron/cron/cron.h Mon Sep 5 16:43:57 2016 (r305427) @@ -73,7 +73,6 @@ #define MAX_COMMAND 1000 /* max length of internally generated cmd */ #define MAX_ENVSTR 1000 /* max length of envvar=value\0 strings */ #define MAX_TEMPSTR 100 /* obvious */ -#define MAX_UNAME 20 /* max length of username, should be overkill */ #define ROOT_UID 0 /* don't change this, it really must be root */ #define ROOT_USER "root" /* ditto */ #define SYS_NAME "*system*" /* magic owner name for system crontab */ Modified: releng/11.0/usr.sbin/cron/crontab/crontab.c ============================================================================== --- releng/11.0/usr.sbin/cron/crontab/crontab.c Mon Sep 5 16:06:52 2016 (r305426) +++ releng/11.0/usr.sbin/cron/crontab/crontab.c Mon Sep 5 16:43:57 2016 (r305427) @@ -28,6 +28,7 @@ static const char rcsid[] = #define MAIN_PROGRAM +#include #include "cron.h" #include #include @@ -57,7 +58,7 @@ static char *Options[] = { "???", "list" static PID_T Pid; -static char User[MAX_UNAME], RealUser[MAX_UNAME]; +static char User[MAXLOGNAME], RealUser[MAXLOGNAME]; static char Filename[MAX_FNAME]; static FILE *NewCrontab; static int CheckErrorCount; From owner-svn-src-releng@freebsd.org Wed Sep 7 18:20:51 2016 Return-Path: Delivered-To: svn-src-releng@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 13A31BD09A9; Wed, 7 Sep 2016 18:20:51 +0000 (UTC) (envelope-from wblock@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D8B52FF7; Wed, 7 Sep 2016 18:20:50 +0000 (UTC) (envelope-from wblock@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u87IKoiA010064; Wed, 7 Sep 2016 18:20:50 GMT (envelope-from wblock@FreeBSD.org) Received: (from wblock@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u87IKokx010063; Wed, 7 Sep 2016 18:20:50 GMT (envelope-from wblock@FreeBSD.org) Message-Id: <201609071820.u87IKokx010063@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wblock set sender to wblock@FreeBSD.org using -f From: Warren Block Date: Wed, 7 Sep 2016 18:20:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org Subject: svn commit: r305551 - releng/11.0/release/doc/en_US.ISO8859-1/relnotes X-SVN-Group: releng MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-releng@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the release engineering / security commits to the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2016 18:20:51 -0000 Author: wblock (doc committer) Date: Wed Sep 7 18:20:49 2016 New Revision: 305551 URL: https://svnweb.freebsd.org/changeset/base/305551 Log: Mention lme's new rc.subr subcommands, 'describe' and 'extracommands'. Submitted by: lme Approved by: re (gjb, implicit re@) Sponsored by: Essen Linuxhotel Hackathon 2016 Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml ============================================================================== --- releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Wed Sep 7 18:16:06 2016 (r305550) +++ releng/11.0/release/doc/en_US.ISO8859-1/relnotes/article.xml Wed Sep 7 18:20:49 2016 (r305551) @@ -742,6 +742,13 @@ updated to honor entries within /etc/rc.conf.d/. + Two new subcommands have been added to + the &man.rc.8; subsystem. describe shows + an rc script's description, and + extracommands shows any non-standard + commands present in an rc script, like + reload, configtest, or + keygen.