inetutils ftpd fcntl(F_SETOWN) failure message suppression patch
Jason Tishler
jason@tishler.net
Mon Jan 13 02:54:00 GMT 2003
Corrina,
The attached patch to ftpd prevents messages like the following from
filling up the Event Log whenever someone connects to the server:
[34724] ftpd
Type: ERROR
Computer: TISHLERJASON
Time: 12/31/2002 3:10:21 PM ID: 0
User: SYSTEM\NT AUTHORITY
ftpd : Win32 Process Id = 0xDC8 : Cygwin Process Id = 0xE54 : fcntl F_SETOWN: In valid argument
Thanks,
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
-------------- next part --------------
--- ftpd.c.orig 2002-10-01 15:39:24.000000000 -0400
+++ ftpd.c 2003-01-03 08:02:11.000000000 -0500
@@ -382,7 +382,7 @@ main(argc, argv, envp)
syslog(LOG_ERR, "setsockopt: %m");
#endif
-#ifdef F_SETOWN
+#if defined(F_SETOWN) && !defined(__CYGWIN__)
if (fcntl(fileno(stdin), F_SETOWN, getpid()) == -1)
syslog(LOG_ERR, "fcntl F_SETOWN: %m");
#endif
-------------- next part --------------
2003-01-03 Jason Tishler <jason@tishler.net>
* ftpd/ftpd.c (main): Add Cygwin guard to the conditional compilation
around fcntl(F_SETOWN) to prevent the Event Log from filling with
expected failure messages.
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list