From: Miklos Szeredi Date: Fri, 15 Dec 2006 16:18:39 +0000 (+0000) Subject: fusermount: Fix detection of fuseblk X-Git-Tag: fuse_2_6_merge1~3 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e9e620eaf1c68fc468b5f3d6a5b4619dfcc8234e;p=qemu-gpiodev%2Flibfuse.git fusermount: Fix detection of fuseblk --- diff --git a/ChangeLog b/ChangeLog index 57f5e37..9fbdfb7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-12-15 Miklos Szeredi + * fusermount: Fix detection of fuseblk. Reported by Szakacsits + Szabolcs + * lib: Fix use after free in fuse_flush(). Reported by Ron Lindman diff --git a/util/fusermount.c b/util/fusermount.c index 2b84db5..41ef53d 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -583,7 +583,7 @@ static int has_fuseblk(void) return 1; while (fgets(buf, sizeof(buf), f)) - if (strcmp(buf, "fuseblk\n") == 0) { + if (strstr(buf, "fuseblk\n")) { fclose(f); return 1; }