diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-06-01 13:16:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-06-01 13:33:09 +0200 |
commit | 2f67864064d846c3d1bbbe58ab271c0a8fc83b12 (patch) | |
tree | 8ce153d8b336c9a0a019af0d8f842a3fe80a0aca /src/veritysetup/veritysetup.c | |
parent | cryptsetup: implicitly set global log functions when loading libcryptsetup dy... (diff) | |
download | systemd-2f67864064d846c3d1bbbe58ab271c0a8fc83b12.tar.xz systemd-2f67864064d846c3d1bbbe58ab271c0a8fc83b12.zip |
cryptsetup: explicitl set default log functions wherever needed
Code using libcryptsetup already sets the global log function if it uses
dlopen_cryptsetup(). Make sure we do the same for the three programs
that explicitly link against libcryptsetup and hence to not use
dlopen_cryptsetup().
Diffstat (limited to 'src/veritysetup/veritysetup.c')
-rw-r--r-- | src/veritysetup/veritysetup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/veritysetup/veritysetup.c b/src/veritysetup/veritysetup.c index 2b54065437..34208dcd87 100644 --- a/src/veritysetup/veritysetup.c +++ b/src/veritysetup/veritysetup.c @@ -138,6 +138,8 @@ static int run(int argc, char *argv[]) { log_setup(); + cryptsetup_enable_logging(NULL); + umask(0022); if (streq(argv[1], "attach")) { |