repo.or.cz
/
systemd.io.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
hwdb: fix screen rotation for EXO Wings 2in1 w1125 (#36283)
[systemd.io.git]
/
test
/
units
/
TEST-22-TMPFILES.17.sh
blob
f43aba5ad9ecc178fa9d157b91470c50c6b807bd
1
#!/bin/bash
2
# SPDX-License-Identifier: LGPL-2.1-or-later
3
#
4
# Test for C-style escapes in file names and contents
5
set -eux
6
set -o
pipefail
7
8
data
=
"
\x20
foo
\n
bar"
9
dst
=
"/tmp/x/
\x20
a
\n
b"
10
11
systemd-tmpfiles
--create
-
<<EOF
12
f "
$dst
" 0644 0 0 -
$data
13
EOF
14
15
diff
"$(printf "
/
tmp
/
x
/
\x20
a
\n
b
")"
<(
printf
"
\x20
foo
\n
bar"
)