From owner-freebsd-commit Thu Mar 30 21:45:30 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA13763 for commit-outgoing; Thu, 30 Mar 1995 21:45:30 -0800 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA13744 for cvs-gnu-outgoing; Thu, 30 Mar 1995 21:45:27 -0800 Received: (from wpaul@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA13728; Thu, 30 Mar 1995 21:45:24 -0800 Date: Thu, 30 Mar 1995 21:45:24 -0800 From: Bill Paul Message-Id: <199503310545.VAA13728@freefall.cdrom.com> To: CVS-commiters, cvs-gnu Subject: cvs commit: src/gnu/libexec/ypxfr log.c Makefile yp_svc.c yp_xdr.c ypclnt.c ypxfr.8 ypxfr.c Sender: commit-owner@FreeBSD.org Precedence: bulk wpaul 95/03/30 21:45:23 Modified: gnu/libexec/ypxfr Makefile yp_svc.c yp_xdr.c ypclnt.c ypxfr.8 ypxfr.c Added: gnu/libexec/ypxfr log.c Log: Rework error reporting/logging: although the SunOS documentation says that ypxfr is supposed to log messages to /var/yp/ypxfr.log if it exists, using syslog() makes more sense, especially since ypserv does the same thing already. Try to use stderr by default, and use syslog() if stderr is not a tty. Also update the man page to reflect this change.