char **ret = NULL;
int size = 0, alloc = 0;
- r = command (&out, &err,
- "blkid",
- /* Adding -c option kills all caching, even on RHEL 5. */
- "-c", "/dev/null",
- "-p", "-i", "-o", "export", device, NULL);
+ const char *blkid[] = {"blkid", "-p", "-i", "-o", "export", device, NULL};
+ r = commandv(&out, &err, blkid);
if (r == -1) {
reply_with_error("%s", err);
goto error;