git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f14c04
)
Revert "blkid: Use -c /dev/null because RHEL 5 blkid doesn't have -p option."
author
Richard W.M. Jones
<rjones@redhat.com>
Sun, 4 Dec 2011 16:47:37 +0000
(16:47 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Sun, 4 Dec 2011 16:47:37 +0000
(16:47 +0000)
This reverts commit
6533491b178d18bfab8240cf093be4ef9b547548
.
daemon/blkid.c
patch
|
blob
|
history
diff --git
a/daemon/blkid.c
b/daemon/blkid.c
index
c610a41
..
a7fd6bc
100644
(file)
--- a/
daemon/blkid.c
+++ b/
daemon/blkid.c
@@
-94,11
+94,8
@@
do_blkid(const char *device)
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;