Upload files to "/"
This commit is contained in:
parent
b617b4cc5e
commit
03203d3998
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user