mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-17 03:05:02 -04:00
main: report close(2) errors
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
9e2e1cbbd1
commit
beeafcfc62
5
main.c
5
main.c
@ -2901,13 +2901,14 @@ ovl_write_buf (fuse_req_t req, fuse_ino_t ino,
|
|||||||
static void
|
static void
|
||||||
ovl_release (fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
|
ovl_release (fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
(void) ino;
|
(void) ino;
|
||||||
|
|
||||||
if (ovl_debug (req))
|
if (ovl_debug (req))
|
||||||
fprintf (stderr, "ovl_release(ino=%" PRIu64 ")\n", ino);
|
fprintf (stderr, "ovl_release(ino=%" PRIu64 ")\n", ino);
|
||||||
|
|
||||||
close (fi->fh);
|
ret = close (fi->fh);
|
||||||
fuse_reply_err (req, 0);
|
fuse_reply_err (req, ret == 0 ? 0 : errno);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user