Improved an error message by using rsyserr().
authorWayne Davison <wayned@samba.org>
Thu, 7 Oct 2004 17:02:39 +0000 (17:02 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 7 Oct 2004 17:02:39 +0000 (17:02 +0000)
main.c

diff --git a/main.c b/main.c
index 03af24b..008f216 100644 (file)
--- a/main.c
+++ b/main.c
@@ -477,7 +477,7 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
        }
 
        if (fd_pair(error_pipe) < 0) {
-               rprintf(FERROR,"error pipe failed in do_recv\n");
+               rsyserr(FERROR, errno, "pipe failed in do_recv");
                exit_cleanup(RERR_SOCKETIO);
        }