From 03203d39984d27a639130642787c51e54c3b3a49 Mon Sep 17 00:00:00 2001 From: 8nl <8nlight@disroot.org> Date: Mon, 8 Jan 2024 09:29:33 +0000 Subject: [PATCH] Upload files to "/" --- cutecat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cutecat.c b/cutecat.c index f01e922..453f9bd 100644 --- a/cutecat.c +++ b/cutecat.c @@ -33,7 +33,7 @@ int cat(const char *path) { fd = open(path, O_RDONLY); if (fd < 0) { - fprintf(stderr, "cat: %s: %s\n", path, strerror(errno)); + fprintf(stderr, "cutecat: %s: %s\n", path, strerror(errno)); return 1; } @@ -42,7 +42,7 @@ int cat(const char *path) { while ((len = read(fd, buf, sizeof(buf))) > 0) { OwO(buf, len); if (write(STDOUT_FILENO, buf, len) != len) { - fprintf(stderr, "cat: %s\n", strerror(errno)); + fprintf(stderr, "cutecat: %s\n", strerror(errno)); return 1; } }