summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSimon Pilkington <simonp.git@mailbox.org>2024-09-25 11:25:48 +0200
committerSimon Pilkington <simonp.git@mailbox.org>2024-09-25 11:25:48 +0200
commit32951fe4de683f5d42cec2fb2e036f766b051e2b (patch)
tree04e21a28f6404699d0b7c99d958db8392c8ef099 /test
parentTODO: add one more systemctl rfe (diff)
downloadsystemd-32951fe4de683f5d42cec2fb2e036f766b051e2b.tar.xz
systemd-32951fe4de683f5d42cec2fb2e036f766b051e2b.zip
creds: fix cat with encrypted credentials
Fixes: https://github.com/systemd/systemd/issues/34547
Diffstat (limited to 'test')
-rwxr-xr-xtest/units/TEST-54-CREDS.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/units/TEST-54-CREDS.sh b/test/units/TEST-54-CREDS.sh
index 29b789d361..3a4fa654e9 100755
--- a/test/units/TEST-54-CREDS.sh
+++ b/test/units/TEST-54-CREDS.sh
@@ -43,8 +43,8 @@ CRED_DIR="$(mktemp -d)"
ENC_CRED_DIR="$(mktemp -d)"
echo foo >"$CRED_DIR/secure-or-weak"
echo foo >"$CRED_DIR/insecure"
-echo foo | systemd-creds --name="encrypted" encrypt - - | base64 -d >"$ENC_CRED_DIR/encrypted"
-echo foo | systemd-creds encrypt - - | base64 -d >"$ENC_CRED_DIR/encrypted-unnamed"
+echo foo | systemd-creds --name="encrypted" encrypt - "$ENC_CRED_DIR/encrypted"
+echo foo | systemd-creds encrypt - "$ENC_CRED_DIR/encrypted-unnamed"
chmod -R 0400 "$CRED_DIR" "$ENC_CRED_DIR"
chmod -R 0444 "$CRED_DIR/insecure"
mkdir /tmp/empty/