From owner-freebsd-ports Tue May 16 16:20: 5 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 253D737B7DC for ; Tue, 16 May 2000 16:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA02654; Tue, 16 May 2000 16:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from lathian.com (adsl-63-200-45-30.dsl.snfc21.pacbell.net [63.200.45.30]) by hub.freebsd.org (Postfix) with ESMTP id BC1DA37B69D for ; Tue, 16 May 2000 16:14:23 -0700 (PDT) (envelope-from mab@lathian.com) Received: from enzian.lathian (enzian.lathian [10.0.0.33]) by lathian.com (Postfix) with ESMTP id 568161B201 for ; Tue, 16 May 2000 16:14:23 -0700 (PDT) Received: by enzian.lathian (Postfix, from userid 1000) id 8D5602C923; Tue, 16 May 2000 16:14:22 -0700 (PDT) Message-Id: <20000516231422.8D5602C923@enzian.lathian> Date: Tue, 16 May 2000 16:14:22 -0700 (PDT) From: mab@lathian.com Reply-To: mab@lathian.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/18609: misc/amanda24: change amdump to set nodump flag on dumps to disk Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 18609 >Category: ports >Synopsis: misc/amanda24: change amdump to set nodump flag on dumps to disk >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: Tue May 16 16:20:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Matthew Braithwaite >Release: FreeBSD 4.0-STABLE i386 >Organization: Lathian >Environment: >Description: This is super handy because it allows you to back up your holding disk without sucking in the huge files Amanda is writing there. Yes, I know, you're supposed to dedicate a holding disk, but this is handy for the cases where you can't. Add the following NEW FILE, patches/patch-ag: *** server-src/dumper.c Thu Nov 19 15:12:23 1998 --- server-src/dumper.c.new Wed May 10 22:41:46 2000 *************** *** 288,293 **** --- 288,304 ---- amfree(q); break; } + #ifdef UF_NODUMP + /* + * Do this to make sure this file itself is not backed up + * accidentaly. We do not really care for the return value + * of fchflags, because the open above would've failed if + * anything was wrong. + * XXX configure should tell us if fchflags exists on this + * platform + */ + fchflags(outfd, UF_NODUMP); + #endif filename_seq = 0; check_options(options); >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message