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:
65acb79
)
Check return value from pclose.
author
Richard W.M. Jones
<rjones@redhat.com>
Sat, 20 Jun 2009 13:55:49 +0000
(14:55 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Sat, 20 Jun 2009 13:55:49 +0000
(14:55 +0100)
daemon/find.c
patch
|
blob
|
history
diff --git
a/daemon/find.c
b/daemon/find.c
index
a873bca
..
287aae3
100644
(file)
--- a/
daemon/find.c
+++ b/
daemon/find.c
@@
-113,7
+113,11
@@
do_find (char *dir)
return NULL;
}
}
- pclose (fp);
+ if (pclose (fp) == -1) {
+ reply_with_perror ("pclose: find");
+ free_stringslen (res, size);
+ return NULL;
+ }
if (r == -1) {
free_stringslen (res, size);