Skip to content

Commit 0168b13

Browse files
player131007bluca
authored andcommitted
creds-util: log when we remove a secret from a different machine
1 parent 34a2223 commit 0168b13

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/shared/creds-util.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,8 @@ int get_credential_host_secret(CredentialSecretFlags flags, struct iovec *ret) {
610610
/* Hmm, this secret is from somewhere else. Let's delete the file. Let's first acquire a lock
611611
* to ensure we are the only ones accessing the file while we delete it. */
612612

613+
log_notice("'%s/%s' comes from a different machine ID, deleting.", dirname, filename);
614+
613615
if (flock(fd, LOCK_EX) < 0)
614616
return log_debug_errno(errno,
615617
"Failed to flock %s/%s: %m", dirname, filename);

0 commit comments

Comments
 (0)