From owner-freebsd-bugs Mon Sep 2 23:20: 7 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 29A1A37B400 for ; Mon, 2 Sep 2002 23:20:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF9F943E3B for ; Mon, 2 Sep 2002 23:20:03 -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 g836K3JU036559 for ; Mon, 2 Sep 2002 23:20:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g836K3kK036557; Mon, 2 Sep 2002 23:20:03 -0700 (PDT) Date: Mon, 2 Sep 2002 23:20:03 -0700 (PDT) Message-Id: <200209030620.g836K3kK036557@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Juli Mallett Subject: Re: bin/42356: uudecode -o doesn't work if piped Reply-To: Juli Mallett 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: Juli Mallett To: Kimura Fuyuki Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: bin/42356: uudecode -o doesn't work if piped Date: Mon, 2 Sep 2002 23:10:48 -0700 * De: Kimura Fuyuki [ Data: 2002-09-02 ] [ Subjecte: bin/42356: uudecode -o doesn't work if piped ] > By the way, I don't understand the mean of the following lines. Are they > necessary? If they can be zapped, it could be a better solution. > > } 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. juli. -- Juli Mallett | FreeBSD: The Power To Serve Will break world for fulltime employment. | finger jmallett@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message