patch --dry-run creates directories

Bug #1245437 reported by Aapo Rantalainen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
patch (Ubuntu)
New
Undecided
Unassigned

Bug Description

GNU patch 2.7.1

Steps:
echo "--- /dev/null
+++ first/filename.txt
@@ -0,0 +1,2 @@
+line 1
+line 2" | patch -p0 --dry-run

Expected:
No modifications on file system
(if expectation is wrong, maybe documentation needs tuning)

Actually happens:
There are new directory: first

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.