search for: 04a6a29

Displaying 2 results from an estimated 2 matches for "04a6a29".

Did you mean: 04a62a6
2009 Nov 09
1
[PATCH libguestfs] avoid "syntax-check" failure
...CH libguestfs] avoid "syntax-check" failure * fuse/guestmount.c (fg_readlink): Don't declare "r" as const, as it is freed. --- fuse/guestmount.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fuse/guestmount.c b/fuse/guestmount.c index 910ec34..04a6a29 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -339,7 +339,7 @@ fg_access (const char *path, int mask) static int fg_readlink (const char *path, char *buf, size_t size) { - const char *r; + char *r; int free_it = 0; r = rlc_lookup (path); @@ -361,7 +361,7 @@ fg_readlink (cons...
2009 Nov 09
1
[PATCH libguestfs] indent with spaces, not TABs
...c (*stderror, se_size); + if (p == NULL) { + perror ("realloc"); + goto quit; + } + *stderror = p; + memcpy (*stderror + se_size - r, buf, r); + } } } } diff --git a/fuse/guestmount.c b/fuse/guestmount.c index 04a6a29..2181a31 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -694,7 +694,7 @@ fg_release (const char *path, struct fuse_file_info *fi) /* Emulate this by calling sync. */ static int fg_fsync(const char *path, int isdatasync, - struct fuse_file_info *fi) + struct f...