Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2018 02:30:09 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334910 - head/usr.sbin/cron/cron
Message-ID:  <201806100230.w5A2U9Sh083964@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sun Jun 10 02:30:09 2018
New Revision: 334910
URL: https://svnweb.freebsd.org/changeset/base/334910

Log:
  Remove old, dead compat code.
  
  We no longer need to od these things conditionally, and the fallbacks
  are to 4.2BSD era defaults, which nobody uses anymore. Vixie cron has
  diverged from upstream anyway in our tree, and it's not clear there's
  actually a viable upstream anymore. Plus, we don't follow the
  vendor-supplied code pattern here.
  
  I'm doing this to reduce false positives from grep.

Modified:
  head/usr.sbin/cron/cron/pathnames.h

Modified: head/usr.sbin/cron/cron/pathnames.h
==============================================================================
--- head/usr.sbin/cron/cron/pathnames.h	Sun Jun 10 02:13:30 2018	(r334909)
+++ head/usr.sbin/cron/cron/pathnames.h	Sun Jun 10 02:30:09 2018	(r334910)
@@ -53,11 +53,7 @@
 
 			/* where should the daemon stick its PID?
 			 */
-#ifdef _PATH_VARRUN
-# define PIDDIR	_PATH_VARRUN
-#else
-# define PIDDIR "/etc/"
-#endif
+#define PIDDIR	_PATH_VARRUN
 #define PIDFILE		"%scron.pid"
 
 			/* 4.3BSD-style crontab */
@@ -68,16 +64,4 @@
 			/* what editor to use if no EDITOR or VISUAL
 			 * environment variable specified.
 			 */
-#if defined(_PATH_VI)
-# define EDITOR _PATH_VI
-#else
-# define EDITOR "/usr/ucb/vi"
-#endif
-
-#ifndef _PATH_BSHELL
-# define _PATH_BSHELL "/bin/sh"
-#endif
-
-#ifndef _PATH_DEFPATH
-# define _PATH_DEFPATH "/usr/bin:/bin"
-#endif
+#define EDITOR _PATH_VI



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806100230.w5A2U9Sh083964>