From slaven@rezic.de  Mon Oct 21 09:21:05 2002
Return-Path: <slaven@rezic.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2E5CC37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 21 Oct 2002 09:21:05 -0700 (PDT)
Received: from mail.netbeat.de (mail.netbeat.de [62.208.140.19])
	by mx1.FreeBSD.org (Postfix) with SMTP id CAC3F43E65
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 21 Oct 2002 09:21:03 -0700 (PDT)
	(envelope-from slaven@rezic.de)
Received: (qmail 6904 invoked from network); 21 Oct 2002 16:23:10 -0000
Received: from bbafd.pppool.de (HELO vran.herceg.de) (213.7.186.253)
  by mail.netbeat.de with SMTP; 21 Oct 2002 16:23:10 -0000
Received: (from eserte@localhost)
	by vran.herceg.de (8.12.4/8.12.4/Submit) id g9LGG01N019286;
	Mon, 21 Oct 2002 18:16:00 +0200 (CEST)
	(envelope-from eserte)
Message-Id: <200210211616.g9LGG01N019286@vran.herceg.de>
Date: Mon, 21 Oct 2002 18:16:00 +0200 (CEST)
From: Slaven Rezic <eserte@vran.herceg.de>
Reply-To: Slaven Rezic <slaven.rezic@berlin.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: uudecode example does not work
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         44339
>Category:       bin
>Synopsis:       uudecode example does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    fanf
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 21 09:30:00 PDT 2002
>Closed-Date:    Tue Oct 22 06:29:01 PDT 2002
>Last-Modified:  Tue Oct 22 06:29:01 PDT 2002
>Originator:     Slaven Rezic
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
www.rezic.de
>Environment:
System: FreeBSD vran.herceg.de 4.6-STABLE FreeBSD 4.6-STABLE #15: Sat Jul 27 09:32:28 CEST 2002 root@vran.herceg.de:/usr/local/src/FreeBSD-4/src/sys/compile/VRAN i386


>Description:
	The last example from the uudecode documentation does not
	work.
	
>How-To-Repeat:

	The original example is:
	
           uudecode -o /dev/stdout < $MAIL | zcat | tar xfv -

	I tried and got:

$ uudecode -o /dev/stdout < uue | zcat | tar txv -
uudecode: /dev/stdout: stdin: Invalid argument

zcat: stdin: unexpected end of file
tar: Unknown option.  Use 'tar --help' for a complete list of options.
Exit 1

	where uue is:

begin 660 bla.tar.gz
M'XL(`&8GM#T``^W2/4_#,!`&X,S^%4=`:I$:ZO0K4@V9&,N&Q,*2-">PVL:1
M[2BM$/\=-Y01!J2JR_LL/M_9ULGVQ&_NFFUT5JF4BX6DB"C-YOT8_(S!3$Z(
MLOE\EDVSQ33$J<Q2&9$\;UO?6N<+2Q2Q8^OY]W7=._.9[^D2KJ_&K;/C4M?C
MANV6DDZTCLEYJ]=>]?'S1HG=@6ZZE!["9+E\*G3]HNO*=$E><W>J3OZL3D,U
MK$GRE7:^-'LE0B[)=7V\]J$<4>S9^?CVE&^*]>84AM:JX>#^T;3EEI,T'XS(
MM25]B./7Z8^LPDYK#JK/5)HI9FN-I1T[5[SQ:QTK\1E._NEN94RC!.^U)ZG$
@I5\```````````````````````#@?[X`(0R4BP`H````
`

>Fix:

>Release-Note:
>Audit-Trail:

From: Lowell Gilbert <freebsd-bugs-local@be-well.no-ip.com>
To: Slaven Rezic <slaven.rezic@berlin.de>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/44339: uudecode example does not work
Date: 21 Oct 2002 16:24:37 -0400

 Slaven Rezic <eserte@vran.herceg.de> writes:
 
 > >Description:
 > 	The last example from the uudecode documentation does not
 > 	work.
 > 	
 > >How-To-Repeat:
 > 
 > 	The original example is:
 > 	
 >            uudecode -o /dev/stdout < $MAIL | zcat | tar xfv -
 > 
 > 	I tried and got:
 > 
 > $ uudecode -o /dev/stdout < uue | zcat | tar txv -
 > uudecode: /dev/stdout: stdin: Invalid argument
 > 
 > zcat: stdin: unexpected end of file
 > tar: Unknown option.  Use 'tar --help' for a complete list of options.
 > Exit 1
 > 
 > 	where uue is:
 > 
 > begin 660 bla.tar.gz
 > M'XL(`&8GM#T``^W2/4_#,!`&X,S^%4=`:I$:ZO0K4@V9&,N&Q,*2-">PVL:1
 > M[2BM$/\=-Y01!J2JR_LL/M_9ULGVQ&_NFFUT5JF4BX6DB"C-YOT8_(S!3$Z(
 > MLOE\EDVSQ33$J<Q2&9$\;UO?6N<+2Q2Q8^OY]W7=._.9[^D2KJ_&K;/C4M?C
 > MANV6DDZTCLEYJ]=>]?'S1HG=@6ZZE!["9+E\*G3]HNO*=$E><W>J3OZL3D,U
 > MK$GRE7:^-'LE0B[)=7V\]J$<4>S9^?CVE&^*]>84AM:JX>#^T;3EEI,T'XS(
 > MM25]B./7Z8^LPDYK#JK/5)HI9FN-I1T[5[SQ:QTK\1E._NEN94RC!.^U)ZG$
 > @I5\```````````````````````#@?[X`(0R4BP`H````
 > `
 > 
 
 Your input file is bogus (it has no end flag, for one thing), and you
 are passing an invalid set of flags to tar(1) as well (I suspect you
 wanted tfv, not txv).  Could you try coming up with a syntactically
 correct example that demonstrates the problem you are actually
 trying to report?  

From: Slaven Rezic <slaven.rezic@berlin.de>
To: Lowell Gilbert <freebsd-bugs-local@be-well.no-ip.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/44339: uudecode example does not work
Date: 21 Oct 2002 23:38:06 +0200

 Lowell Gilbert <freebsd-bugs-local@be-well.no-ip.com> writes:
 
 > Slaven Rezic <eserte@vran.herceg.de> writes:
 > 
 > > >Description:
 > > 	The last example from the uudecode documentation does not
 > > 	work.
 > > 	
 > > >How-To-Repeat:
 > > 
 > > 	The original example is:
 > > 	
 > >            uudecode -o /dev/stdout < $MAIL | zcat | tar xfv -
 > > 
 > > 	I tried and got:
 > > 
 > > $ uudecode -o /dev/stdout < uue | zcat | tar txv -
 > > uudecode: /dev/stdout: stdin: Invalid argument
 > > 
 > > zcat: stdin: unexpected end of file
 > > tar: Unknown option.  Use 'tar --help' for a complete list of options.
 > > Exit 1
 > > 
 > > 	where uue is:
 > > 
 > > begin 660 bla.tar.gz
 > > M'XL(`&8GM#T``^W2/4_#,!`&X,S^%4=`:I$:ZO0K4@V9&,N&Q,*2-">PVL:1
 > > M[2BM$/\=-Y01!J2JR_LL/M_9ULGVQ&_NFFUT5JF4BX6DB"C-YOT8_(S!3$Z(
 > > MLOE\EDVSQ33$J<Q2&9$\;UO?6N<+2Q2Q8^OY]W7=._.9[^D2KJ_&K;/C4M?C
 > > MANV6DDZTCLEYJ]=>]?'S1HG=@6ZZE!["9+E\*G3]HNO*=$E><W>J3OZL3D,U
 > > MK$GRE7:^-'LE0B[)=7V\]J$<4>S9^?CVE&^*]>84AM:JX>#^T;3EEI,T'XS(
 > > MM25]B./7Z8^LPDYK#JK/5)HI9FN-I1T[5[SQ:QTK\1E._NEN94RC!.^U)ZG$
 > > @I5\```````````````````````#@?[X`(0R4BP`H````
 > > `
 > > 
 > 
 > Your input file is bogus (it has no end flag, for one thing), and you
 > are passing an invalid set of flags to tar(1) as well (I suspect you
 > wanted tfv, not txv).  Could you try coming up with a syntactically
 > correct example that demonstrates the problem you are actually
 > trying to report?  
 > 
 
 Sigh. Here again, actually tested and no cut'n'paste involved now:
 
 uue:
 ######################################################################
 begin 660 bla.tar.gz
 M'XL(`&8GM#T``^W2/4_#,!`&X,S^%4=`:I$:ZO0K4@V9&,N&Q,*2-">PVL:1
 M[2BM$/\=-Y01!J2JR_LL/M_9ULGVQ&_NFFUT5JF4BX6DB"C-YOT8_(S!3$Z(
 MLOE\EDVSQ33$J<Q2&9$\;UO?6N<+2Q2Q8^OY]W7=._.9[^D2KJ_&K;/C4M?C
 MANV6DDZTCLEYJ]=>]?'S1HG=@6ZZE!["9+E\*G3]HNO*=$E><W>J3OZL3D,U
 MK$GRE7:^-'LE0B[)=7V\]J$<4>S9^?CVE&^*]>84AM:JX>#^T;3EEI,T'XS(
 MM25]B./7Z8^LPDYK#JK/5)HI9FN-I1T[5[SQ:QTK\1E._NEN94RC!.^U)ZG$
 @I5\```````````````````````#@?[X`(0R4BP`H````
 `
 end
 ######################################################################
 
 the shell script:
 ######################################################################
 #!/bin/sh
 uudecode -o /dev/stdout < uue | zcat | tar xfv -
 ######################################################################
 
 Regards,
 	Slaven
 
 -- 
 Slaven Rezic - slaven.rezic@berlin.de
 
     tkrevdiff - graphical display of diffs between revisions (RCS or CVS)
     http://ptktools.sourceforge.net/#tkrevdiff
State-Changed-From-To: open->feedback 
State-Changed-By: fanf 
State-Changed-When: Tue Oct 22 04:07:31 PDT 2002 
State-Changed-Why:  
I've recently MFCed the -CURRENT version of uudecode which is supposed 
to fix this problem, amongst others. Your test case doesn't exhibit 
the bug when I try it. Please try upgrading and tell me if I can close 
this PR. 


Responsible-Changed-From-To: freebsd-bugs->fanf 
Responsible-Changed-By: fanf 
Responsible-Changed-When: Tue Oct 22 04:07:31 PDT 2002 
Responsible-Changed-Why:  
I have been hacking on uudecode. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=44339 
State-Changed-From-To: feedback->closed 
State-Changed-By: fanf 
State-Changed-When: Tue Oct 22 06:28:30 PDT 2002 
State-Changed-Why:  
Submitter is happy with the current code. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=44339 
>Unformatted:
