diff options
author | Colin Cross <ccross@android.com> | 2012-12-20 12:24:52 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2012-12-20 12:26:32 -0800 |
commit | 27f830fdfa2c49c25ce1324990afcd6f00eccee3 (patch) | |
tree | 7e20879343d2f0da95fd8395d6b9d74d49c2c2d1 /ext4_utils | |
parent | a4460149a5fadc639dbb708c332a75f9717c12d6 (diff) | |
download | extras-27f830fdfa2c49c25ce1324990afcd6f00eccee3.tar.gz |
ext4_utils: fix segfault on error opening output file
error_errno uses longjmp, but the jump target has not been set up
in make_ext4fs_main.c. Use perror instead.
Change-Id: Ic86eeb8af2315d1847d0a6d667e0b4e25eb9bdda
Diffstat (limited to 'ext4_utils')
-rw-r--r-- | ext4_utils/make_ext4fs_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext4_utils/make_ext4fs_main.c b/ext4_utils/make_ext4fs_main.c index 8381f204..3f6d35bb 100644 --- a/ext4_utils/make_ext4fs_main.c +++ b/ext4_utils/make_ext4fs_main.c @@ -180,7 +180,7 @@ int main(int argc, char **argv) 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 { |