Commit c72836f7 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(dump_connections): Emit strerror(errno) when file operations fails. (Bug 841).

parent 2b4d06d8
/*
* $Id: connections.c,v 0.80 2002/10/23 09:04:16 ceder Exp $
* $Id: connections.c,v 0.81 2002/10/25 08:34:38 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -556,8 +556,8 @@ dump_connections(void)
if ((fp = fopen(param.connection_status_file_tmp, "w")) == NULL)
{
kom_log("dump_connections(): can't open file %s\n",
param.connection_status_file_tmp);
kom_log("dump_connections(): can't open file %s: %s\n",
param.connection_status_file_tmp, strerror(errno));
return;
}
......@@ -577,9 +577,10 @@ dump_connections(void)
if (rename(param.connection_status_file_tmp,
param.connection_status_file) < 0)
{
kom_log("dump_connections(): can't rename %s to %s\n",
kom_log("dump_connections(): can't rename %s to %s: %s\n",
param.connection_status_file_tmp,
param.connection_status_file);
param.connection_status_file,
strerror(errno));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment