Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2018 15:11:22 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r342573 - head/usr.sbin/autofs
Message-ID:  <201812281511.wBSFBMwD012214@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: crees (doc,ports committer)
Date: Fri Dec 28 15:11:22 2018
New Revision: 342573
URL: https://svnweb.freebsd.org/changeset/base/342573

Log:
  There is no way of escaping literal $ signs in auto_master(5), which
  makes for difficulty with hidden Samba shares; shares with $ at the end
  of their name.  This enables the use of ${DOLLAR} to work around this.
  
  Reviewed by:		bcr (man page)
  Approved by:		trasz
  Differential Revision:	https://reviews.freebsd.org/D7048

Modified:
  head/usr.sbin/autofs/auto_master.5
  head/usr.sbin/autofs/defined.c

Modified: head/usr.sbin/autofs/auto_master.5
==============================================================================
--- head/usr.sbin/autofs/auto_master.5	Fri Dec 28 13:32:14 2018	(r342572)
+++ head/usr.sbin/autofs/auto_master.5	Fri Dec 28 15:11:22 2018	(r342573)
@@ -27,7 +27,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd March 13, 2015
+.Dd December 28, 2018
 .Dt AUTO_MASTER 5
 .Os
 .Sh NAME
@@ -187,6 +187,8 @@ Expands to the output of
 .Li "uname -p" .
 .It Li CPU
 Same as ARCH.
+.It Li DOLLAR
+A literal $ sign.
 .It Li HOST
 Expands to the output of
 .Li "uname -n" .

Modified: head/usr.sbin/autofs/defined.c
==============================================================================
--- head/usr.sbin/autofs/defined.c	Fri Dec 28 13:32:14 2018	(r342572)
+++ head/usr.sbin/autofs/defined.c	Fri Dec 28 15:11:22 2018	(r342573)
@@ -266,6 +266,7 @@ defined_init(void)
 
 	defined_add("ARCH", name.machine);
 	defined_add("CPU", name.machine);
+	defined_add("DOLLAR", "$");
 	defined_add("HOST", name.nodename);
 	defined_add("OSNAME", name.sysname);
 	defined_add("OSREL", name.release);



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