From: Eryu Guan Date: Wed, 8 Oct 2014 09:42:29 +0000 (+0800) Subject: btrfs-progs: return error when canonicalize_path failed X-Git-Tag: upstream/4.16.1~2669 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d601190a7df193ecf37a445fbb5a9a0999f28b21;p=platform%2Fupstream%2Fbtrfs-progs.git 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 Signed-off-by: David Sterba --- diff --git a/cmds-replace.c b/cmds-replace.c index 9fe7ad8..4a4e865 100644 --- a/cmds-replace.c +++ b/cmds-replace.c @@ -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)) {