git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 1.10.10.
[libguestfs.git]
/
daemon
/
upload.c
diff --git
a/daemon/upload.c
b/daemon/upload.c
index
2c42969
..
a1a37ae
100644
(file)
--- a/
daemon/upload.c
+++ b/
daemon/upload.c
@@
-103,10
+103,6
@@
upload (const char *filename, int flags, int64_t offset)
}
if (close (data.fd) == -1) {
}
if (close (data.fd) == -1) {
- err = errno;
- if (r == -1) /* if r == 0, file transfer ended already */
- r = cancel_receive ();
- errno = err;
reply_with_perror ("close: %s", filename);
return -1;
}
reply_with_perror ("close: %s", filename);
return -1;
}