Add substitutions %t, %j, and %J as path-safe variants of %T, %i, and %I.
authorDr. Thomas Orgis <thomas.orgis@uni-hamburg.de>
Thu, 27 Jul 2017 10:54:28 +0000 (12:54 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 8 Jan 2018 02:34:17 +0000 (03:34 +0100)
commitca66efc24181ba6a7a4c13397af514b0972b4855
treee6bd0940b1bd43a72a733b21bcd67de3bc0c6e1d
parentd39664fc66dafaf5cce2b830033df52da4d81695
Add substitutions %t, %j, and %J as path-safe variants of %T, %i, and %I.

Rationale: Using the existing substitutions in construction of paths
(dynamic shares, created on client connect) results in directory names with
colons and dots in them. Those can be hard to use when accessed from a
different share, as Windows does not allow : in paths and has some ideas about
dots.

Signed-off-by: Dr. Thomas Orgis <thomas.orgis@uni-hamburg.de>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
docs-xml/manpages/smb.conf.5.xml
lib/util/time.c
lib/util/time.h
source3/lib/substitute.c
source3/torture/torture.c