]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemd-run: really make -E an alias for --setenv (#3654)
authorMichał Bartoszkiewicz <mbartoszkiewicz@gmail.com>
Tue, 5 Jul 2016 17:23:23 +0000 (19:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Jul 2016 17:23:23 +0000 (10:23 -0700)
systemd-run --help says:
  -E --setenv=NAME=VALUE          Set environment

src/run/run.c

index d6c9b6d37a5c83d3f38a8f1606e1fdf32f442e8a..58fa49a4d117b567c32477fd4543126f64e7d196 100644 (file)
@@ -187,7 +187,7 @@ static int parse_argv(int argc, char *argv[]) {
         assert(argc >= 0);
         assert(argv);
 
-        while ((c = getopt_long(argc, argv, "+hrH:M:p:tq", options, NULL)) >= 0)
+        while ((c = getopt_long(argc, argv, "+hrH:M:E:p:tq", options, NULL)) >= 0)
 
                 switch (c) {