2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-02 07:15:31 +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:
Kir Kolyshkin
2014-01-08 19:33:02 -08:00
committed by Pavel Emelyanov
parent fe0a9670f3
commit 8c0feee253

View File

@@ -306,11 +306,9 @@ int main(int argc, char *argv[])
/* We must not open imgs dir, if service is called */ /* We must not open imgs dir, if service is called */
if (strcmp(argv[optind], "service")) { if (strcmp(argv[optind], "service")) {
ret = open_image_dir(imgs_dir); ret = open_image_dir(imgs_dir);
if (ret < 0) { if (ret < 0)
pr_perror("Can't open imgs directory");
return 1; return 1;
} }
}
if (chdir(work_dir)) { if (chdir(work_dir)) {
pr_perror("Can't change directory to %s", work_dir); pr_perror("Can't change directory to %s", work_dir);