diff options
Diffstat (limited to '')
-rw-r--r-- | lib/btrfs.c (renamed from libmisc/btrfs.c) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmisc/btrfs.c b/lib/btrfs.c index a2563f7..0391598 100644 --- a/libmisc/btrfs.c +++ b/lib/btrfs.c @@ -39,7 +39,7 @@ static int run_btrfs_subvolume_cmd(const char *subcmd, const char *arg1, const c NULL }; - if (access(cmd, X_OK)) { + if (!cmd || access(cmd, X_OK)) { return 1; } |