From owner-freebsd-bugs@FreeBSD.ORG Fri Apr 11 22:50:00 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C7EC2BBE for ; Fri, 11 Apr 2014 22:50:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8C8B117C8 for ; Fri, 11 Apr 2014 22:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3BMo0aY051651 for ; Fri, 11 Apr 2014 22:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3BMo0kY051650; Fri, 11 Apr 2014 22:50:00 GMT (envelope-from gnats) Resent-Date: Fri, 11 Apr 2014 22:50:00 GMT Resent-Message-Id: <201404112250.s3BMo0kY051650@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, David Boyd Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AE8DEBB3 for ; Fri, 11 Apr 2014 22:49:23 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9BB7117C0 for ; Fri, 11 Apr 2014 22:49:23 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3BMnNeK078023 for ; Fri, 11 Apr 2014 22:49:23 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3BMnNmf078017; Fri, 11 Apr 2014 22:49:23 GMT (envelope-from nobody) Message-Id: <201404112249.s3BMnNmf078017@cgiserv.freebsd.org> Date: Fri, 11 Apr 2014 22:49:23 GMT From: David Boyd To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: bin/188485: mergemaster -p fails with "/var/tmp/temproot suddenly disappeared" X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2014 22:50:00 -0000 >Number: 188485 >Category: bin >Synopsis: mergemaster -p fails with "/var/tmp/temproot suddenly disappeared" >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Apr 11 22:50:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: David Boyd >Release: 10.0-RELEASE-p1 >Organization: Boyd Consulting Services, LLC >Environment: amd64 10.0-RELEASE-p1 >Description: mergemaster -p fails with message "/var/tmp/temproot suddenly disappeared" mergemaster issues "find -d ${TEMPROOT} -type d -empty -delete 2> /dev/null" to delete directories under TEMPROOT (defaults to /var/tmp/temproot). For 10.0-RELEASE this results in temproot being removed. For earlier releases a warning message about relative paths is redirected to /dev/null but the directory remains. >How-To-Repeat: mkdir -p /var/tmp/temproot ls -ldT /var/tmp/temproot find -d /var/tmp/temproot -type d -empty -delete ls -ldT /var/tmp/temproot >Fix: in mergemaster near line number 711: replace: find -d ${TEMPROOT} -type d -empty -delete 2> /dev/null with: find -d ${TEMPROOT} -type d -empty -mindepth 1 -delete 2> /dev/null This solution is discussed in r253886 to find. >Release-Note: >Audit-Trail: >Unformatted: