From owner-freebsd-current Tue Oct 20 19:03:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA02344 for freebsd-current-outgoing; Tue, 20 Oct 1998 19:03:44 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA02324 for ; Tue, 20 Oct 1998 19:03:35 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.9.1/8.9.1) with ESMTP id TAA07982; Tue, 20 Oct 1998 19:03:04 -0700 (PDT) (envelope-from jdp) Message-Id: <199810210203.TAA07982@austin.polstra.com> To: Christopher Masto cc: current@FreeBSD.ORG Subject: Re: cvsup and file permissions In-reply-to: Your message of "Tue, 20 Oct 1998 21:56:09 EDT." <19981020215609.A20479@netmonger.net> Date: Tue, 20 Oct 1998 19:03:04 -0700 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > How right you are. Ouch. The problem is that I've been using sudo > to run it, and while I've been setting _my_ umask to 2 for years, > I see that it is not being inherited when I sudo. I feel like an > idiot and I apologize for wasting your time. No need. I'm just glad the problem is solved. You're not the first person to run into something like this. It reinforces the need for CVSup to support a "umask" specification in the cvsupfile itself. The only problem is, it's not as simple as it sounds. The user might reasonably want to specify different umask values for different collections. But CVSup can't simply use those values to call umask() directly, because at any given time it may well be working on up to 3 collections simultaneously. (That's because of its pipelined architecture.) So the effects of the umask system call will probably have to be faked manually, and that's why I haven't implemented it yet. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message