diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-03-31 11:21:37 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-03-31 11:44:46 +0200 |
commit | 752d8594427ff141293c27a0e9aa84fb3796c419 (patch) | |
tree | 1037950e9ef2c6eda8a86bbca9a3f7ccb734b3f6 /src/integritysetup | |
parent | integritysetup: log when attempted to detach already detached volume (diff) | |
download | systemd-752d8594427ff141293c27a0e9aa84fb3796c419.tar.xz systemd-752d8594427ff141293c27a0e9aa84fb3796c419.zip |
integritysetup: also port to mangle_none()
Let's make the tool work more like veritysetup/cryptsetup in this regard
too.
Diffstat (limited to 'src/integritysetup')
-rw-r--r-- | src/integritysetup/integritysetup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/integritysetup/integritysetup.c b/src/integritysetup/integritysetup.c index 5fd220c515..f95840a8d0 100644 --- a/src/integritysetup/integritysetup.c +++ b/src/integritysetup/integritysetup.c @@ -121,8 +121,8 @@ static int run(int argc, char *argv[]) { return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "attach has a maximum of five arguments."); device = argv[3]; - key_file = (argc > 4) ? empty_or_dash_to_null(argv[4]) : NULL; - options = (argc > 5) ? empty_or_dash_to_null(argv[5]) : NULL; + key_file = mangle_none(argc > 4 ? argv[4] : NULL); + options = mangle_none(argc > 5 ? argv[5] : NULL); if (key_file) { r = load_key_file(key_file, &key_buf, &key_buf_size); |