git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
out-of-tree build: generate ./run from template, fix image checks
[libguestfs.git]
/
daemon
/
fsck.c
diff --git
a/daemon/fsck.c
b/daemon/fsck.c
index
932f1c5
..
7a36440
100644
(file)
--- a/
daemon/fsck.c
+++ b/
daemon/fsck.c
@@
-32,12
+32,13
@@
do_fsck (const char *fstype, const char *device)
char *err;
int r;
char *err;
int r;
- r = commandr (NULL, &err, "
/sbin/
fsck", "-a", "-t", fstype, device, NULL);
+ r = commandr (NULL, &err, "fsck", "-a", "-t", fstype, device, NULL);
if (r == -1) {
reply_with_error ("%s: %s", device, err);
free (err);
return -1;
}
if (r == -1) {
reply_with_error ("%s: %s", device, err);
free (err);
return -1;
}
+ free (err);
return r;
}
return r;
}