diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-12-23 03:16:56 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-12-23 03:16:56 +0100 |
commit | c38a141b1f66ef48f8e4f71e26d1861de63bd151 (patch) | |
tree | 7ffe03d5fa1e8a4606a1be8abef4dca9e24d8628 /udev/udev-builtin.c | |
parent | e216e514cf0c3bc6352f43fa3a7ffad221200bca (diff) |
update blkid builtin
Diffstat (limited to 'udev/udev-builtin.c')
-rw-r--r-- | udev/udev-builtin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/udev/udev-builtin.c b/udev/udev-builtin.c index f17b04f67e..6dfd006710 100644 --- a/udev/udev-builtin.c +++ b/udev/udev-builtin.c @@ -94,12 +94,13 @@ int udev_builtin_run(struct udev_device *dev, enum udev_builtin_cmd cmd, const c int argc; char *argv[128]; + optind = 0; util_strscpy(arg, sizeof(arg), command); udev_build_argv(udev_device_get_udev(dev), arg, &argc, argv); return builtins[cmd]->cmd(dev, argc, argv, test); } -int udev_builtin_add_property(struct udev_device *dev, bool test, const char *key, const char *val, ...) +int udev_builtin_add_property(struct udev_device *dev, bool test, const char *key, const char *val) { struct udev_list_entry *entry; |