diff --git a/cmd_fusemount.c b/cmd_fusemount.c index 533e3af2..085c08a4 100644 --- a/cmd_fusemount.c +++ b/cmd_fusemount.c @@ -248,7 +248,7 @@ err: static void bcachefs_fuse_mkdir(fuse_req_t req, fuse_ino_t dir, const char *name, mode_t mode) { - BUG_ON(mode & (~S_IALLUGO)); + BUG_ON(mode & S_IFMT); mode |= S_IFDIR; bcachefs_fuse_mknod(req, dir, name, mode, 0);