Don't require root/admin for -L
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Tue, 21 Feb 2017 17:30:00 +0000 (18:30 +0100)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Tue, 21 Feb 2017 17:30:00 +0000 (18:30 +0100)
main.c

diff --git a/main.c b/main.c
index 11d8d09bc7a181e9206470c10cdfc43c983c50a6..9cf0041c2b82aea2e25388c7ba1dc812dc44ed45 100644 (file)
--- a/main.c
+++ b/main.c
@@ -276,7 +276,9 @@ int main(int argc, char **argv)
                return 1;
        }
 
-       require_admin();
+       if (!list) {
+               require_admin();
+       }
 #endif
        val = !list ? nmrp_do(&args) : ethsock_list_all();