Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Oct 1997 16:27:29 +0100 (CET)
From:      Slaven Rezic <eserte@cs.tu-berlin.de>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/4882: uudecode can't handle whitespace in filename
Message-ID:  <199710281832.TAA01035@cabulja.herceg.de>
Resent-Message-ID: <199710282220.OAA25871@hub.freebsd.org>

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

>Number:         4882
>Category:       bin
>Synopsis:       uudecode can't handle whitespace in filename
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 28 14:20:02 PST 1997
>Last-Modified:
>Originator:     Slaven Rezic
>Organization:
Private FreeBSD site, Berlin, Germany
>Release:        FreeBSD 2.2.1-RELEASE i386
>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] == '~') {



>Audit-Trail:
>Unformatted:



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