chiark / gitweb /
replace "add|change" with "!remove"
[elogind.git] / extras / udev-acl / udev-acl.c
index c070fccd17a6b45efd750cf720950497d809af19..ce515902e0556262660eba8d84295b012969a57d 100644 (file)
@@ -353,12 +353,10 @@ int main (int argc, char* argv[])
 
                switch (option) {
                case 'a':
-                       if (strcmp(optarg, "add") == 0 || strcmp(optarg, "change") == 0)
-                               action = ACTION_ADD;
-                       else if (strcmp(optarg, "remove") == 0)
+                       if (strcmp(optarg, "remove") == 0)
                                action = ACTION_REMOVE;
                        else
-                               goto out;
+                               action = ACTION_ADD;
                        break;
                case 'D':
                        device = optarg;