]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemd-creds: fix name of env var
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Apr 2022 16:45:47 +0000 (18:45 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 8 Apr 2022 18:13:03 +0000 (20:13 +0200)
The env var is called $CREDENTIALS_DIRECTORY, not $CREDENTIALS_PATH. Fix
message about it accordingly.

src/creds/creds.c

index 2fd314ff37176decc95c99860ba5505175fe86b3..6e3441e5a0b1586d5c6974c5a3db59f6fd692360 100644 (file)
@@ -103,7 +103,7 @@ static int verb_list(int argc, char **argv, void *userdata) {
 
         r = open_credential_directory(&d);
         if (r == -ENXIO)
-                return log_error_errno(r, "No credentials received. (i.e. $CREDENTIALS_PATH not set or pointing to empty directory.)");
+                return log_error_errno(r, "No credentials received. (i.e. $CREDENTIALS_DIRECTORY not set or pointing to empty directory.)");
         if (r < 0)
                 return log_error_errno(r, "Failed to open credentials directory: %m");