summaryrefslogtreecommitdiff
path: root/src/cryptsetup-generator.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-15 00:44:13 +0100
committerLennart Poettering <lennart@poettering.net>2011-03-15 00:45:46 +0100
commit2a796654b9a1f84962e5dafbcf171dcc22742c99 (patch)
tree48ede42feb5e59732a77158b11e5eca75d8c9eda /src/cryptsetup-generator.c
parent2fc9784656900c4dc3715db506096ddc23fdd87c (diff)
getty: move automatic serial getty logic into generator
Diffstat (limited to 'src/cryptsetup-generator.c')
-rw-r--r--src/cryptsetup-generator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptsetup-generator.c b/src/cryptsetup-generator.c
index 00120f67a0..00f48009ed 100644
--- a/src/cryptsetup-generator.c
+++ b/src/cryptsetup-generator.c
@@ -222,7 +222,8 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}
- arg_dest = argv[1];
+ if (argc > 1)
+ arg_dest = argv[1];
log_set_target(LOG_TARGET_SYSLOG_OR_KMSG);
log_parse_environment();