From eserte@cs.tu-berlin.de  Tue Oct 28 14:18:27 1997
Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA25690
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Oct 1997 14:18:25 -0800 (PST)
          (envelope-from eserte@cs.tu-berlin.de)
Received: from cabulja.herceg.de (dial1-78.zrz.TU-Berlin.DE [130.149.1.238])
	by mail.cs.tu-berlin.de (8.8.6/8.8.7) with ESMTP id XAA07787
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Oct 1997 23:15:36 +0100 (MET)
Received: (from eserte@localhost) by cabulja.herceg.de (8.8.5/8.6.12) id TAA01035 for FreeBSD-gnats-submit@freebsd.org; Tue, 28 Oct 1997 19:32:11 +0100 (CET)
Message-Id: <199710281832.TAA01035@cabulja.herceg.de>
Date: Tue, 28 Oct 1997 16:27:29 +0100 (CET)
From: Slaven Rezic <eserte@cs.tu-berlin.de>
Reply-To: eserte@cs.tu-berlin.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: uudecode can't handle whitespace in filename
X-Send-Pr-Version: 3.2

>Number:         4882
>Category:       bin
>Synopsis:       uudecode can't handle whitespace in filename
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 28 14:20:02 PST 1997
>Closed-Date:    Sun May 24 23:31:19 PDT 1998
>Last-Modified:  Sun May 24 23:33:48 PDT 1998
>Originator:     Slaven Rezic
>Release:        FreeBSD 2.2.1-RELEASE i386
>Organization:
Private FreeBSD site, Berlin, Germany
>Environment:

>Description:

	I got a uuencoded file with following header line (probably
	from a macintosh guy):

	begin 666 Grafik 1.gif

	uudecode creates "Grafik" instead of "Grafik 1.gif".

>How-To-Repeat:

>Fix:
	
	Here's a patch:

--- /usr/src/usr.bin/uudecode/uudecode.c	Tue Oct 22 00:02:24 1996
+++ uudecode.c	Thu Oct 23 18:23:47 1997
@@ -148,7 +148,7 @@
 			return(1);
 		}
 	} while (strncmp(buf, "begin ", 6));
-	(void)sscanf(buf, "begin %o %s", &mode, buf);
+	(void)sscanf(buf, "begin %o %[^\n\r]", &mode, buf);
 
 	/* handle ~user/file format */
 	if (buf[0] == '~') {



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun May 24 23:31:19 PDT 1998 
State-Changed-Why:  
Patch committed to both -current and -stable, thanks!  Sorry 
it took so long to get to this. 
>Unformatted:
