Commits

Anonymous committed 78831b4 Merge

Merge branch 'jc/upload-corrupt' into next

* jc/upload-corrupt:
daemon: send stderr to /dev/null instead of closing.

  • Participants
  • Parent commits 811476d, ba0012c

Comments (0)

Files changed (1)

 		struct sockaddr *peer = (struct sockaddr *)&ss;
 		socklen_t slen = sizeof(ss);
 
-		fclose(stderr); //FIXME: workaround
+		freopen("/dev/null", "w", stderr);
 
 		if (getpeername(0, peer, &slen))
 			peer = NULL;