diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2010-04-12 16:52:41 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2010-04-12 16:52:41 +0200 |
commit | 4b06c409350d26af5e6ace0f368d01b80d75438e (patch) | |
tree | 10d8291f4e1faf0c008e41c8570297490d45a09d /extras/udev-acl/udev-acl.c | |
parent | 86dc9133f88e8690aa89ccb5a240ff915b1fb69f (diff) |
replace "add|change" with "!remove"
Diffstat (limited to 'extras/udev-acl/udev-acl.c')
-rw-r--r-- | extras/udev-acl/udev-acl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/extras/udev-acl/udev-acl.c b/extras/udev-acl/udev-acl.c index c070fccd17..ce515902e0 100644 --- a/extras/udev-acl/udev-acl.c +++ b/extras/udev-acl/udev-acl.c @@ -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; |