From owner-freebsd-bugs Tue Oct 28 14:20:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA25909 for bugs-outgoing; Tue, 28 Oct 1997 14:20:09 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA25871; Tue, 28 Oct 1997 14:20:04 -0800 (PST) (envelope-from gnats) Resent-Date: Tue, 28 Oct 1997 14:20:04 -0800 (PST) Resent-Message-Id: <199710282220.OAA25871@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, eserte@cs.tu-berlin.de 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 ; 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 ; 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 Reply-To: eserte@cs.tu-berlin.de To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/4882: uudecode can't handle whitespace in filename Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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: