shithub: mcfs

Download patch

ref: 3c37130311a0387c7dcfd9eadf5270d905b9bab6
parent: 4129b65e38e8bb04bce05e88d580674e6a9f5f40
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Feb 9 09:29:10 EST 2021

mkvdump: print *file* name, not executable name

--- a/extra/mkvdump.c
+++ b/extra/mkvdump.c
@@ -162,6 +162,6 @@
 
 	exits(nil);
 err:
-	fprint(2, "%s: %r\n", argv0);
+	fprint(2, "%s: %r\n", fd == 0 ? "stdin" : *argv);
 	exits("error");
 }