search for: inotifyxxxxxx

Displaying 2 results from an estimated 2 matches for "inotifyxxxxxx".

2014 Sep 23
0
[PATCH 09/13] syntax-check: fix prohibit_path_max_allocation check
....c b/daemon/inotify.c index 36e5ede..b847b7d 100644 --- a/daemon/inotify.c +++ b/daemon/inotify.c @@ -309,7 +309,7 @@ do_inotify_files (void) unsigned int i; FILE *fp = NULL; guestfs_int_inotify_event_list *events; - char buf[PATH_MAX]; + char *buf = NULL; char tempfile[] = "/tmp/inotifyXXXXXX"; int fd; char cmd[64]; @@ -361,6 +361,12 @@ do_inotify_files (void) return NULL; } + buf = malloc(PATH_MAX); + if (buf == NULL) { + reply_with_perror ("malloc"); + goto error; + } + while (fgets (buf, sizeof buf, fp) != NULL) { size_t len = strlen (b...
2014 Sep 23
27
[PATCH 00/13] syntax-check
Hi Rich, This series includes patches to make `make syntax-check` pass. Some of the fix require change to maint.mk, but the file is not in git repo. Is it intended? Thanks! Hu Tao (13): syntax-check: dirty hack to pass bindtextdomain check syntax-check: fix error_message_period check syntax-check: fix makefile_at_at_check syntax-check: fix prohibit_assert_without_use check