]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
main: refuse --test as root
authorLennart Poettering <lennart@poettering.net>
Sat, 19 Feb 2011 13:20:00 +0000 (14:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 19 Feb 2011 13:20:00 +0000 (14:20 +0100)
TODO
src/main.c

diff --git a/TODO b/TODO
index b205a88f371793a6cab66cc682eace665b9883d0..48c003a5b7473caad6da644acb2d321367f823c7 100644 (file)
--- a/TODO
+++ b/TODO
@@ -5,11 +5,10 @@ Bugs:
 * when plymouth is disabled the console password entry stuff seems to be borked
   https://bugzilla.redhat.com/show_bug.cgi?id=655538
 
-* exclude java hsp files by default
-  https://bugzilla.redhat.com/show_bug.cgi?id=527425
-
 Features:
 
+* support "auto" and "comment=systemd.automount" at the same time for an fstab entry
+
 * Make use of UnknownInterface, UnknownObject
 
 * increase password timeout
@@ -124,8 +123,6 @@ External:
 
 * snd-seq should go, https://bugzilla.redhat.com/show_bug.cgi?id=676095
 
-* mount.tmpfs should be optimized, https://bugzilla.redhat.com/show_bug.cgi?id=676100
-
 * gnome-shell python script/glxinfo/is-accelerated wech
 
 * make cryptsetup lower --iter-time
index 96a282a34fe7c35281dd3f2e5f5aca8ae9b51722..d1be83d44f9eb774025e5c8ccf18e7dc23eb8dbd 100644 (file)
@@ -1012,6 +1012,11 @@ int main(int argc, char *argv[]) {
         if (parse_argv(argc, argv) < 0)
                 goto finish;
 
+        if (arg_action == ACTION_TEST && geteuid() == 0) {
+                log_error("Don't run test mode as root.");
+                goto finish;
+        }
+
         /* If Plymouth is being run make sure we show the status, so
          * that there's something nice to see when people press Esc */
         if (access("/dev/.systemd/plymouth", F_OK) >= 0)