commit | c3b25b1b83e7042ce2e223b689efdee0d72f6ad1 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Dec 20 14:41:23 2012 -0800 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Dec 20 14:41:23 2012 -0800 |
tree | 7e20879343d2f0da95fd8395d6b9d74d49c2c2d1 | |
parent | 1d1a9011f03b5bebbda14768dd3672f1371ff7fb [diff] | |
parent | 27f830fdfa2c49c25ce1324990afcd6f00eccee3 [diff] |
Merge "ext4_utils: fix segfault on error opening output file"
diff --git a/ext4_utils/make_ext4fs_main.c b/ext4_utils/make_ext4fs_main.c index 8381f20..3f6d35b 100644 --- a/ext4_utils/make_ext4fs_main.c +++ b/ext4_utils/make_ext4fs_main.c
@@ -180,7 +180,7 @@ if (strcmp(filename, "-")) { fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644); if (fd < 0) { - error_errno("open"); + perror("open"); return EXIT_FAILURE; } } else {