summaryrefslogtreecommitdiff
path: root/udev/udevadm-trigger.c
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2011-06-30 15:17:09 +0200
committerHarald Hoyer <harald@redhat.com>2011-06-30 15:17:09 +0200
commite261c5f619e059e96e1ef9977fa1665cd8223541 (patch)
treee689b17425ec3c18fb1346c9f64883642cccdc70 /udev/udevadm-trigger.c
parentdaa42554ea1f3bc861805a753d2dd07c1c5db743 (diff)
udevadm-*.c: return != 0, if unknown option given
Diffstat (limited to 'udev/udevadm-trigger.c')
-rw-r--r--udev/udevadm-trigger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/udev/udevadm-trigger.c b/udev/udevadm-trigger.c
index c32e0b4e2f..d31b4fbd8d 100644
--- a/udev/udevadm-trigger.c
+++ b/udev/udevadm-trigger.c
@@ -199,6 +199,7 @@ int udevadm_trigger(struct udev *udev, int argc, char *argv[])
" --help\n\n");
goto exit;
default:
+ rc = 1;
goto exit;
}
}