]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2scrub: fix systemd escaping again
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 5 Nov 2018 17:59:46 +0000 (09:59 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 15 Nov 2018 19:20:35 +0000 (14:20 -0500)
commite6a3faa237b15e2fe576c249250636cdd6a38cc7
tree8c17f9122ebc5777169bdd2d26f71047b82c0966
parentae9c0f3666de1aec5ebb2663346dcfc116f90f50
e2scrub: fix systemd escaping again

Apparently newer versions of systemd than the one on this author's
laptop <cough> now complain about lack of (path) escaping in unit
instance variable contents:

 # e2scrub_all
 Scrubbing /home...
 Invalid unit name "e2scrub@/home" was escaped as "e2scrub@-home"
 (maybe you should use systemd-escape?)
 Starting Online ext4 Metadata Check for /home...

So change the escape_path_for_systemd function to escape paths
unconditionally to make the warning go away.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
scrub/e2scrub_all.in