Portable OpenSSH 2.5.1p1: daemontools-aware?

Jos Backus josb at cncdsl.com
Wed Feb 21 07:48:25 EST 2001


This tiny patch adds a ``-e'' flag to force logging to stderr instead of
syslog.

--- openssh-2.5.1p1.dist/sshd.c	Sun Feb 18 11:13:12 2001
+++ openssh-2.5.1p1/sshd.c	Tue Feb 20 11:22:15 2001
@@ -576,7 +576,7 @@
 	initialize_server_options(&options);
 
 	/* Parse command-line arguments. */
-	while ((opt = getopt(ac, av, "f:p:b:k:h:g:V:u:dDiqQ46")) != -1) {
+	while ((opt = getopt(ac, av, "ef:p:b:k:h:g:V:u:dDiqQ46")) != -1) {
 		switch (opt) {
 		case '4':
 			IPv4or6 = AF_INET;
@@ -600,6 +600,9 @@
 			break;
 		case 'D':
 			no_daemon_flag = 1;
+			break;
+		case 'e':
+			log_stderr = 1;
 			break;
 		case 'i':
 			inetd_flag = 1;

If deemed useful I'll send a man diff as well.

-- 
Jos Backus                 _/  _/_/_/        "Modularity is not a hack."
                          _/  _/   _/                -- D. J. Bernstein
                         _/  _/_/_/             
                    _/  _/  _/    _/
josb at cncdsl.com     _/_/   _/_/_/            use Std::Disclaimer;





More information about the openssh-unix-dev mailing list