Bug 21779

Summary: patch(1)'s bug of new file creation
Product: Base System Reporter: kaz <kaz>
Component: gnuAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: kaz
Priority: Normal    
Version: 3.3-RELEASE   
Hardware: Any   
OS: Any   

Description kaz 2000-10-06 02:40:01 UTC
	% 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.

Fix: 

I'm sorry for not fixed /usr/src/gnu/usr.bin/patch/...
How-To-Repeat: 
	If the patch file contains the differential of *new* file creation,
	patch(1) does not create the new files.
Comment 1 iedowse freebsd_committer freebsd_triage 2001-11-17 17:52:19 UTC
State Changed
From-To: open->feedback


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?
Comment 2 iedowse freebsd_committer freebsd_triage 2001-11-17 18:08:14 UTC
State Changed
From-To: feedback->closed


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