From owner-freebsd-bugs@FreeBSD.ORG Mon May 24 13:40:24 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FA4E16A4D6 for ; Mon, 24 May 2004 13:40:23 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3876A43D1F for ; Mon, 24 May 2004 13:40:23 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i4OKeGYq097641 for ; Mon, 24 May 2004 13:40:16 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i4OKeG8a097640; Mon, 24 May 2004 13:40:16 -0700 (PDT) (envelope-from gnats) Resent-Date: Mon, 24 May 2004 13:40:16 -0700 (PDT) Resent-Message-Id: <200405242040.i4OKeG8a097640@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, "James E. Housley" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D637016A4CE for ; Mon, 24 May 2004 13:33:22 -0700 (PDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 593BC43D1F for ; Mon, 24 May 2004 13:33:22 -0700 (PDT) (envelope-from jeh@thehousleys.net) Received: from thehousleys.net ([24.34.30.131]) by comcast.net (sccrmhc13) with ESMTP id <20040524203321016000449be>; Mon, 24 May 2004 20:33:21 +0000 Received: from localhost (localhost [127.0.0.1]) by thehousleys.net (8.12.9p2/8.12.9) with ESMTP id i4OKXLTA070269 for ; Mon, 24 May 2004 16:33:21 -0400 (EDT) (envelope-from jeh@cat.int.thehousleys.net) Received: from thehousleys.net ([127.0.0.1]) by localhost (cat.int.thehousleys.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 69999-03 for ; Mon, 24 May 2004 16:33:18 -0400 (EDT) Received: from cat.int.thehousleys.net (localhost [IPv6:::1]) by thehousleys.net (8.12.9p2/8.12.9) with ESMTP id i4OKX9Hd070256 for ; Mon, 24 May 2004 16:33:09 -0400 (EDT) (envelope-from jeh@cat.int.thehousleys.net) Received: (from jeh@localhost) by cat.int.thehousleys.net (8.12.9p2/8.12.9/Submit) id i4OKX9gq070255; Mon, 24 May 2004 16:33:09 -0400 (EDT) (envelope-from jeh) Message-Id: <200405242033.i4OKX9gq070255@cat.int.thehousleys.net> Date: Mon, 24 May 2004 16:33:09 -0400 (EDT) From: "James E. Housley" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/67137: newsyslog does not set correct user/group on the compression X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "James E. Housley" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2004 20:40:25 -0000 >Number: 67137 >Category: bin >Synopsis: newsyslog does not set correct user/group on the compression >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 24 13:40:16 PDT 2004 >Closed-Date: >Last-Modified: >Originator: James E. Housley >Release: FreeBSD 4.9-RELEASE-p8 i386 >Organization: >Environment: System: FreeBSD cat.int.thehousleys.net 4.9-RELEASE-p8 FreeBSD 4.9-RELEASE-p8 #8: Wed May 19 07:41:25 EDT 2004 root@cat.int.thehousleys.net:/usr/obj/usr/src/sys/SERVERKERNEL i386 >Description: Any entry in newsyslog.conf that specifies a user:group will have the wrong user:group the the xxxxx.0.gz or .bz2 file. This is because at the bottom dotrim() after the compression or copy is done, there is no chown() done like there is done on all the copy statements earlier in the program. This affects both -STABLE and -CURRENT. I don't have patches yet, but will try and work some up once I trace filenames. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: