X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cmds-inspect.c;h=885f3abe5b0bfe72156cd2e9eec09fa2c067f0e6;hb=8075fd4da1a5c759261413461a4bd7f9af81722c;hp=d1a3a0e0bdab3d06b9d73963b59292aab7d041f7;hpb=a67efe43629e68039591c361fe4abd4656e0a71a;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/cmds-inspect.c b/cmds-inspect.c index d1a3a0e..885f3ab 100644 --- a/cmds-inspect.c +++ b/cmds-inspect.c @@ -318,7 +318,7 @@ static int cmd_inspect_rootid(int argc, char **argv) if (check_argc_exact(argc - optind, 1)) usage(cmd_inspect_rootid_usage); - fd = btrfs_open_dir(argv[optind], &dirstream, 1); + fd = btrfs_open_file_or_dir(argv[optind], &dirstream, 1); if (fd < 0) { ret = -ENOENT; goto out;