creds: fix cat with encrypted credentials
Fixes: https://github.com/systemd/systemd/issues/34547
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user