Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/autofs autofs: Support DOLLAR for $ literal
details: https://anonhg.NetBSD.org/src/rev/af0842055889
branches: trunk
changeset: 461106:af0842055889
user: tkusumi <tkusumi%NetBSD.org@localhost>
date: Sat Nov 16 12:26:54 2019 +0000
description:
autofs: Support DOLLAR for $ literal
taken-from FreeBSD and DragonFlyBSD
diffstat:
usr.sbin/autofs/auto_master.5 | 6 ++++--
usr.sbin/autofs/defined.c | 5 +++--
2 files changed, 7 insertions(+), 4 deletions(-)
diffs (53 lines):
diff -r b384af096669 -r af0842055889 usr.sbin/autofs/auto_master.5
--- a/usr.sbin/autofs/auto_master.5 Sat Nov 16 12:21:06 2019 +0000
+++ b/usr.sbin/autofs/auto_master.5 Sat Nov 16 12:26:54 2019 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: auto_master.5,v 1.6 2018/01/25 19:15:10 uwe Exp $
+.\" $NetBSD: auto_master.5,v 1.7 2019/11/16 12:26:54 tkusumi Exp $
.\" Copyright (c) 2017 The NetBSD Foundation, Inc.
.\" Copyright (c) 2016 The DragonFly Project
.\" Copyright (c) 2014 The FreeBSD Foundation
@@ -33,7 +33,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 25, 2017
+.Dd November 16, 2019
.Dt AUTO_MASTER 5
.Os
.Sh NAME
@@ -195,6 +195,8 @@
.It Dv CPU
Same as
.Dv ARCH .
+.It Dv DOLLAR
+A literal $ sign.
.It Dv HOST
Expands to the output of
.Li "uname -n" .
diff -r b384af096669 -r af0842055889 usr.sbin/autofs/defined.c
--- a/usr.sbin/autofs/defined.c Sat Nov 16 12:21:06 2019 +0000
+++ b/usr.sbin/autofs/defined.c Sat Nov 16 12:26:54 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: defined.c,v 1.1 2018/01/09 03:31:15 christos Exp $ */
+/* $NetBSD: defined.c,v 1.2 2019/11/16 12:26:54 tkusumi Exp $ */
/*-
* Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: defined.c,v 1.1 2018/01/09 03:31:15 christos Exp $");
+__RCSID("$NetBSD: defined.c,v 1.2 2019/11/16 12:26:54 tkusumi Exp $");
/*
* All the "defined" stuff is for handling variables,
@@ -256,6 +256,7 @@
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);
Home |
Main Index |
Thread Index |
Old Index