]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - cmd_attr.c
Prune rust dependencies
[bcachefs-tools-debian] / cmd_attr.c
index 736554c76383f646c6194a85f301f0c70fe8e25f..bde9d8f6b1c83f1af8719f2f36ee5e212ffb21a4 100644 (file)
@@ -16,6 +16,11 @@ static void propagate_recurse(int dirfd)
        DIR *dir = fdopendir(dirfd);
        struct dirent *d;
 
+       if (!dir) {
+               fprintf(stderr, "fdopendir() error: %m\n");
+               return;
+       }
+
        while ((errno = 0), (d = readdir(dir))) {
                if (!strcmp(d->d_name, ".") ||
                    !strcmp(d->d_name, ".."))
@@ -87,7 +92,7 @@ static void setattr_usage(void)
 
        bch2_opts_usage(OPT_INODE);
        puts("  -h            Display this help and exit\n"
-            "Report bugs to <linux-bcache@vger.kernel.org>");
+            "Report bugs to <linux-bcachefs@vger.kernel.org>");
 }
 
 int cmd_setattr(int argc, char *argv[])