shithub: mc

Download patch

ref: 3dca3385472541f62ef9455814a5599a8e97c03a
parent: 11d385224d630ae234c7e8c4212cfefac8fd167d
author: Ori Bernstein <[email protected]>
date: Mon Jul 23 11:15:08 EDT 2018

Don't abort when we can't open a file.

--- a/muse/muse.c
+++ b/muse/muse.c
@@ -47,8 +47,10 @@
 
 	st = file->file.globls;
 	f = fopen(path, "r");
-	if (!f)
-		die("Couldn't open %s\n", path);
+	if (!f) {
+		fprintf(stderr, "couldn't open %s\n", path);
+		exit(1);
+	}
 	loaduse(path, f, st, Visexport);
 	fclose(f);
 }