From 7026139b66ef876c4ae5f60569ae436191ea54e5 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 5 Sep 2006 19:33:16 +0000 Subject: [PATCH] Add errno to lseek() failure message. --- src/sbbs3/websrvr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/websrvr.c b/src/sbbs3/websrvr.c index 0b0244f173..652b22c662 100644 --- a/src/sbbs3/websrvr.c +++ b/src/sbbs3/websrvr.c @@ -1147,7 +1147,7 @@ static int sock_sendfile(http_session_t *session,char *path,unsigned long start, else { if(start || end) { if(lseek(file, start, SEEK_SET)) { - lprintf(LOG_WARNING,"%04d !ERROR seeking to position %lu in %s",session->socket,start,path); + lprintf(LOG_WARNING,"%04d !ERROR %d seeking to position %lu in %s",session->socket,ERROR_VALUE,start,path); return(0); } remain=end-start+1; -- GitLab