btrfs-progs: return error when canonicalize_path failed

Error out cmd_start_replace() if canonicalize_path() dstdev failed, add
the missing "goto leave_with_error;"

Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
master
Eryu Guan 2014-10-08 17:42:29 +08:00 committed by David Sterba
parent 05499d865f
commit d601190a7d
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ static int cmd_start_replace(int argc, char **argv)
fprintf(stderr,
"ERROR: Could not canonicalize path '%s': %s\n",
argv[optind + 1], strerror(errno));
goto leave_with_error;
}
if (is_numerical(srcdev)) {