Upload files to "/"

This commit is contained in:
8nl 2024-01-08 09:29:33 +00:00
parent b617b4cc5e
commit 03203d3998
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}