From owner-freebsd-bugs Tue Sep 3 1:30:15 2002 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 0E9D337B413 for ; Tue, 3 Sep 2002 01:30:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B23E43E3B for ; Tue, 3 Sep 2002 01:30:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g838U4JU057451 for ; Tue, 3 Sep 2002 01:30:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g838U4CU057450; Tue, 3 Sep 2002 01:30:04 -0700 (PDT) Date: Tue, 3 Sep 2002 01:30:04 -0700 (PDT) Message-Id: <200209030830.g838U4CU057450@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Kimura Fuyuki Subject: Re: bin/42356: uudecode -o doesn't work if piped Reply-To: Kimura Fuyuki Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/42356; it has been noted by GNATS. From: Kimura Fuyuki To: jmallett@FreeBSD.ORG Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/42356: uudecode -o doesn't work if piped Date: Tue, 03 Sep 2002 17:28:40 +0900 > > } else if (!freopen(buf, "w", stdout) || > > fchmod(fileno(stdout), getmode(mode_handle, 0) & 0666)) { > > warn("%s: %s", buf, filename); > > return(1); > > } > This is to set the mode within the acceptable bitmask of modes, of the > file being created. I understand. I must have been half-asleep. :( -- fuyuki To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message