Commit d40c9816 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

uaccess: become a nop when not run on a systemd system

parent 74b91131
......@@ -25,6 +25,7 @@
#include "logind-acl.h"
#include "util.h"
#include "log.h"
#include "sd-daemon.h"
int main(int argc, char *argv[]) {
int r;
......@@ -43,6 +44,11 @@ int main(int argc, char *argv[]) {
goto finish;
}
/* Make sure we don't muck around with ACLs the system is not
* running systemd. */
if (!sd_booted())
return 0;
path = argv[1];
seat = argc < 3 || isempty(argv[2]) ? "seat0" : argv[2];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment