forked from Mirrors/btrfs-progs
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
parent
05499d865f
commit
d601190a7d
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue