From kaz@kobe1995.net  Thu Oct  5 18:36:51 2000
Return-Path: <kaz@kobe1995.net>
Received: from ns.kobe1995.net (211.12.126.15.user.dt.il24.net [211.12.126.15])
	by hub.freebsd.org (Postfix) with ESMTP id B544437B503
	for <freebsd-gnats-submit@freebsd.org>; Thu,  5 Oct 2000 18:36:48 -0700 (PDT)
Received: from mako.kobe1995.net (root@mako [192.168.0.2]) by ns.kobe1995.net (8.8.8/3.4Wbeta6-primary) with ESMTP id KAA29701; Fri, 6 Oct 2000 10:36:37 +0900 (JST)
Received: (from kaz@localhost) by mako.kobe1995.net (8.9.3/3.4Wbeta6-glove) id KAA89880; Fri, 6 Oct 2000 10:36:37 +0900 (JST)
Message-Id: <200010060136.KAA89880@mako.kobe1995.net>
Date: Fri, 6 Oct 2000 10:36:37 +0900 (JST)
From: kaz@kobe1995.net
Reply-To: kaz@kobe1995.net
To: FreeBSD-gnats-submit@freebsd.org
Cc: kaz@kobe1995.net, junichi@configure.sh
Subject: patch(1)'s bug of new file creation
X-Send-Pr-Version: 3.2

>Number:         21779
>Category:       gnu
>Synopsis:       patch(1)'s bug of new file creation
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 05 18:40:01 PDT 2000
>Closed-Date:    Sat Nov 17 10:08:14 PST 2001
>Last-Modified:  Sat Nov 17 10:08:47 PST 2001
>Originator:     NAKAMURA Kazushi
>Release:        FreeBSD 3.3-RELEASE i386
>Organization:
PC shop LABBIT
>Environment:
	
	PC clone with I/O DATA RSA-DV II/S; high speed serial board.

>Description:
	% su
	# cd /usr/src
	# /usr/bin/patch < sio330...patch

	But it does *not* created new files: sys/pci/sio...,
	although outputs 'secceed' messages.
	(There is he patch file at under http://www.configure.sh/FreeBSD/serial.html)
	And then, kernel reconfiguration is failed.

>How-To-Repeat:

	If the patch file contains the differential of *new* file creation,
	patch(1) does not create the new files.

>Fix:
	
	I'm sorry for not fixed /usr/src/gnu/usr.bin/patch/...

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sat Nov 17 09:52:19 PST 2001 
State-Changed-Why:  

I suspect you omitted the "-p" argument to patch, so it created the 
new file in the current directory. The README file that comes with 
those sio patches does say to use "patch -p". Can this PR be closed? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=21779 
State-Changed-From-To: feedback->closed 
State-Changed-By: iedowse 
State-Changed-When: Sat Nov 17 10:08:14 PST 2001 
State-Changed-Why:  

Submitter says that this can be closed. Thanks for the quick reply! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=21779 
>Unformatted:
