Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2002 12:18:36 +0200
From:      Peter Pentchev <roam@ringlet.net>
To:        "J. Mallett" <jmallett@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/uuencode uuencode.1 uuencode.c src/usr.bin/uudecode uudecode.c
Message-ID:  <20020305121835.B304@straylight.oblivion.bg>
In-Reply-To: <200203050327.g253Rlr89277@freefall.freebsd.org>; from jmallett@FreeBSD.org on Mon, Mar 04, 2002 at 07:27:47PM -0800
References:  <200203050327.g253Rlr89277@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--U+BazGySraz5kW0T
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Mar 04, 2002 at 07:27:47PM -0800, J. Mallett wrote:
> jmallett    2002/03/04 19:27:47 PST
>=20
>   Modified files:
>     usr.bin/uuencode     uuencode.1 uuencode.c=20
>     usr.bin/uudecode     uudecode.c=20
>   Log:
>   Add base64 support to uuencode(1) and uudecode(1), as specified by SUSv=
3.
>  =20
>   Add `-o' option to uuencode(1) to pipe the uuencoded output to an
>   arbitrary file, instead of just stdout.
>  =20
>   Reviewed by:    -standards, mike
>   Approved by:    mike

This fails to compile here; how about the attached patch?
(stdout is a variable, not a known-at-compile-time array element anymore)

G'luck,
Peter

--=20
Peter Pentchev	roam@ringlet.net	roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
This sentence would be seven words long if it were six words shorter.

Index: src/usr.bin/uuencode/uuencode.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/usr.bin/uuencode/uuencode.c,v
retrieving revision 1.8
diff -u -r1.8 uuencode.c
--- src/usr.bin/uuencode/uuencode.c	5 Mar 2002 03:27:46 -0000	1.8
+++ src/usr.bin/uuencode/uuencode.c	5 Mar 2002 10:06:47 -0000
@@ -67,7 +67,7 @@
 void base64_encode __P((void));
 static void usage __P((void));
=20
-FILE *output =3D stdout;
+FILE *output;
 int mode;
 char **av;
=20
@@ -123,6 +123,8 @@
 		output =3D fopen(outfile, "w+");
 		if (output =3D=3D NULL)
 			err(1, "unable to open %s for output", outfile);
+	} else {
+		output =3D stdout;
 	}
 	if (base64)
 		base64_encode();

--U+BazGySraz5kW0T
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjyEm3sACgkQ7Ri2jRYZRVOXkQCgmRWPFwlbX9h1/D2GKg14brRP
Hw8AnAx0IWQ4qOrKrkmnP0kEDmaaGm5V
=5x3P
-----END PGP SIGNATURE-----

--U+BazGySraz5kW0T--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020305121835.B304>