mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
main(): don't dupe open_image_dir() error message
In case open_image_dir() fails, it prints an error why, so there is no need to print it one more time. Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
fe0a9670f3
commit
8c0feee253
@@ -306,10 +306,8 @@ int main(int argc, char *argv[])
|
||||
/* We must not open imgs dir, if service is called */
|
||||
if (strcmp(argv[optind], "service")) {
|
||||
ret = open_image_dir(imgs_dir);
|
||||
if (ret < 0) {
|
||||
pr_perror("Can't open imgs directory");
|
||||
if (ret < 0)
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (chdir(work_dir)) {
|
||||
|
Reference in New Issue
Block a user