From owner-freebsd-bugs Mon Jan 26 09:50:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA24736 for freebsd-bugs-outgoing; Mon, 26 Jan 1998 09:50:04 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA24725; Mon, 26 Jan 1998 09:50:02 -0800 (PST) (envelope-from gnats) Received: from misery.sdf.com (misery.sdf.com [204.244.213.32]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA24255 for ; Mon, 26 Jan 1998 09:46:26 -0800 (PST) (envelope-from tom@sdf.com) Received: from tom by misery.sdf.com with local (Exim 1.73 #1) id 0xwsLs-0006jg-00; Mon, 26 Jan 1998 09:29:40 -0800 Message-Id: Date: Mon, 26 Jan 1998 09:29:40 -0800 From: tom@sdf.com Reply-To: tom@sdf.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5571: /var/yp/Makefile bug Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 5571 >Category: bin >Synopsis: /var/yp/Makefile does not use temporary files properly >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 26 09:50:01 PST 1998 >Last-Modified: >Originator: Tom >Organization: SDF Systems >Release: FreeBSD 2.2.5-STABLE i386 >Environment: FreeBSD 2.2.5-STABLE i386 >Description: /var/yp/Makefile goes through great lengths to use unique temporary filenames, except for one: /tmp/ypmake Two invocations of make will stomp on /tmp/ypmake. One will exit with a file not found error, and the other will install a truncated master.passwd.byname, and all the sudden mail starts to bounce as 75% of the users disappear... >How-To-Repeat: Change your password on a yp client (which invokes rpc.yppassdd) at the same time will an admin is doing a "make" to update the maps. >Fix: /var/yp/Makefile needs to postfix some unique info on /tmp/ypmake >Audit-Trail: >Unformatted: