git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a test for an executable stack in resultant binaries
[libguestfs.git]
/
daemon
/
file.c
diff --git
a/daemon/file.c
b/daemon/file.c
index
aab7e93
..
63d8dd2
100644
(file)
--- a/
daemon/file.c
+++ b/
daemon/file.c
@@
-97,18
+97,18
@@
do_cat (char *path)
if (size >= alloc) {
alloc += 8192;
if (alloc > max) {
if (size >= alloc) {
alloc += 8192;
if (alloc > max) {
- reply_with_error ("cat: %s: file is too large for message buffer",
- path);
- free (buf);
- close (fd);
- return NULL;
+
reply_with_error ("cat: %s: file is too large for message buffer",
+
path);
+
free (buf);
+
close (fd);
+
return NULL;
}
buf2 = realloc (buf, alloc);
if (buf2 == NULL) {
}
buf2 = realloc (buf, alloc);
if (buf2 == NULL) {
- reply_with_perror ("realloc");
- free (buf);
- close (fd);
- return NULL;
+
reply_with_perror ("realloc");
+
free (buf);
+
close (fd);
+
return NULL;
}
buf = buf2;
}
}
buf = buf2;
}