fix
authorMiklos Szeredi <miklos@szeredi.hu>
Sat, 2 Sep 2006 13:20:40 +0000 (13:20 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Sat, 2 Sep 2006 13:20:40 +0000 (13:20 +0000)
lib/fuse.c
util/fusermount.c

index 0a3b5551779b990a868f5774003789b2bdd89703..a072f0c9e57df0fd170ffd83ea5aa003d076d7dd 100644 (file)
@@ -691,6 +691,7 @@ static void fuse_getattr(fuse_req_t req, fuse_ino_t ino,
     int err;
 
     (void) fi;
+    memset(&buf, 0, sizeof(buf));
 
     err = -ENOENT;
     pthread_rwlock_rdlock(&f->tree_lock);
index 89ecb2c7e242b78c63353966c626eb1e0f3b7dfc..46d0b6b7abbc55ea48a17da9ef8cec527eefbba9 100644 (file)
@@ -544,7 +544,7 @@ static int check_mountpoint_empty(const char *mnt, mode_t rootmode,
         struct dirent *ent;
         DIR *dp = opendir(mnt);
         if (dp == NULL) {
-            fprintf(stderr, "%s: failed to mountpoint for reading: %s\n",
+            fprintf(stderr, "%s: failed to open mountpoint for reading: %s\n",
                     progname, strerror(errno));
             return -1;
         }