correct typo in error message

Fix typo 'No such filen' to 'No such file' in file open error handling.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao
2025-07-12 14:25:02 +08:00
parent 48146cd85c
commit f57222aeb7

View File

@@ -168,7 +168,7 @@ void request_transfer_file(char type, const char *path)
if (sfd < 0) {
printf("open '%s' failed: ", path);
if (errno == ENOENT)
printf("No such filen\n");
printf("No such file\n");
else
printf("%s\n", strerror(errno));
exit(EXIT_FAILURE);