From owner-freebsd-ports Sat Sep 22 10:20:11 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4A32837B40C for ; Sat, 22 Sep 2001 10:20:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8MHK1F84294; Sat, 22 Sep 2001 10:20:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C5E5B37B409 for ; Sat, 22 Sep 2001 10:19:11 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8MHJB984213; Sat, 22 Sep 2001 10:19:11 -0700 (PDT) (envelope-from nobody) Message-Id: <200109221719.f8MHJB984213@freefall.freebsd.org> Date: Sat, 22 Sep 2001 10:19:11 -0700 (PDT) From: Hidenori Ishikawa To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/30741: ftp.proxy's syslog facility is LOG_MAIL Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30741 >Category: ports >Synopsis: ftp.proxy's syslog facility is LOG_MAIL >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Sep 22 10:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Hidenori Ishikawa >Release: 4.4-RELEASE >Organization: Chiba BSD User Group >Environment: FreeBSD melchior.geofront.magisystem.net 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Sun Sep 16 10:55:49 JST 2001 root@casper.geofront.magisystem.net:/raid0/src/4.4-RELEASE/src/sys/compile/SMP-4.4-RELEASE i386 >Description: FreeBSD ports ftp/ftp.proxy logs to syslog using facility LOG_MAIL by default. Since ftp/ftp.proxy does NOT relate anything with MAIL, it is prefered to be logged to syslog using facility LOG_FTP. >How-To-Repeat: Install ftp/ftp.proxy from ports. Run ftp.proxy service and watch /var/log/maillog. >Fix: *** main.c.orig Fri May 11 17:30:04 2001 --- main.c Sun Sep 23 01:53:05 2001 *************** *** 81,87 **** config->timeout = 15 * 60; strcpy(config->varname, "PROXY_"); ! openlog(program, LOG_PID, LOG_MAIL); k = 1; while (k < argc && argv[k][0] == '-' && argv[k][1] != 0) { --- 81,87 ---- config->timeout = 15 * 60; strcpy(config->varname, "PROXY_"); ! openlog(program, LOG_PID, LOG_FTP); k = 1; while (k < argc && argv[k][0] == '-' && argv[k][1] != 0) { >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message