From 471105fc6138af9dcd6c0a409c0b4937ea6cac6d Mon Sep 17 00:00:00 2001 From: Nathan Straz Date: Thu, 19 Sep 2013 14:44:19 -0400 Subject: Close qacp_fd in the function that openned it. We are already closing it in recvfiles because we could create multiple connections. This caused us to close the fd twice. --- qacp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qacp.c b/qacp.c index 4e9c95d..3afc35e 100644 --- a/qacp.c +++ b/qacp.c @@ -598,6 +598,7 @@ sendfiles(char **argv, int argc, int fileidx, short recursive) free_rstat(rstatp); } + close(qacp_fd); return 0; } @@ -644,8 +645,6 @@ main(int argc, char *argv[]) } } - close(qacp_fd); - if (eflag) { exit(1); } -- cgit