[systemd-devel] correct usage for file-only & (sub)dir-only shell globs in unit tmpfiles?

Lennart Poettering lennart at poettering.net
Sat Dec 19 10:20:53 UTC 2020


On Mo, 21.09.20 15:05, PGNet Dev (pgnet.dev at gmail.com) wrote:

> but, with
>
> 	/etc/tmpfiles.d/test.conf
> (1)     Z /home/test/TEST/{.,**/}          0750 nobody nobody -
> (2A)    Z /home/test/TEST/**               0640 nobody nobody -

mm, the "**" syntax is not something fnmatch(3) nor glob(3) support,
hence tmpfiles.d/ doesn't either.

I this is something worth supporting it probably needs support in
glibc first. I'd rather not like to deviate from glibc behaviour here.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list