commit: 1720a339814e5809d562f3c415118da0c1190c1d
parent d1b4aa19de333e65b44da471cac89d9f98457233
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 27 Jul 2025 09:49:27 +0200
cmd/split: handle file set to '-' as standard input
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/split.c b/cmd/split.c
@@ -329,7 +329,7 @@ main(int argc, char *argv[])
}
else if(argc >= 1)
{
- name_in = argv[0];
+ if(!(argv[0][0] == '-' && argv[0][1] == '\0')) name_in = argv[0];
if(argc == 2) name = argv[1];
}