Commits

Colin Cross  committed 60a6ff7 Merge

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

* commit 'c3b25b1b83e7042ce2e223b689efdee0d72f6ad1':
ext4_utils: fix segfault on error opening output file

  • Participants
  • Parent commits 7dc1702, c3b25b1

Comments (0)

Files changed (1)

File 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 {