diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-06-29 04:14:43 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-06-29 04:14:43 +0200 |
commit | 0b191e603cc31ef0aff435fe20d49c7df39dfb8c (patch) | |
tree | 910715d49c5bab0d17841acc55c9e04f6267e087 /src/uaccess.c | |
parent | b4f78aeac66e64e0489d7a26f1370a69d0fcf011 (diff) |
logind: hook uaccess into udev by default
Diffstat (limited to 'src/uaccess.c')
-rw-r--r-- | src/uaccess.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uaccess.c b/src/uaccess.c index 524e4f0032..392b51604f 100644 --- a/src/uaccess.c +++ b/src/uaccess.c @@ -36,14 +36,14 @@ int main(int argc, char *argv[]) { log_parse_environment(); log_open(); - if (argc != 2) { - log_error("This program expects two argument."); + if (argc < 2 || argc > 3) { + log_error("This program expects one or two arguments."); r = -EINVAL; goto finish; } path = argv[1]; - seat = argv[2]; + seat = argc >= 3 ? argv[2] : "seat0"; p = strappend("/run/systemd/seats/", seat); if (!p) { |