Commits

Anonymous committed c3b25b1 Merge

Merge "ext4_utils: fix segfault on error opening output file"

Comments (0)

Files changed (1)

ext4_utils/make_ext4fs_main.c

 	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 {