From db1e0f17993d2f0834079b3d868c710b8821ef92 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 11 Jan 2024 12:35:07 +0100 Subject: handler: syslog error if file does not exist Report via syslog that file does not exist. --- src/handler.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/handler.c b/src/handler.c index e8b421e..bc8af39 100644 --- a/src/handler.c +++ b/src/handler.c @@ -41,6 +41,8 @@ static int tip_client_file_not_found(struct tip_client *cli) send(tip_client_socket(cli), buf, strlen(buf), 0); + syslog(LOG_ERR, "Requested file `%s' does not exist", cli->path); + return -1; } -- cgit v1.2.3-18-g5258