Date: Mon, 2 Sep 2002 23:20:03 -0700 (PDT) From: Juli Mallett <jmallett@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/42356: uudecode -o doesn't work if piped Message-ID: <200209030620.g836K3kK036557@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/42356; it has been noted by GNATS.
From: Juli Mallett <jmallett@FreeBSD.org>
To: Kimura Fuyuki <fuyuki@hadaly.org>
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 <fuyuki@hadaly.org> [ 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 <jmallett@FreeBSD.org> | 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209030620.g836K3kK036557>
