Skip to contentSkip to conversation

uml: remove elf.h [ compile-fix, for 2.6.12 ]

PATCH Bodo Eggert <[email protected]> 2 participants 2 messages May 10, 2005 2 messages not in the archive User-mode Linux (UML)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 2 lines · Andrew Morton

hmm, that's exciting. How to tell diff and patch to remove a zero-length file?

$ md a b c
$ touch a/a
$ echo .>c/a
$ diff -purN a c
diff -purN a/a c/a
--- a/a 2005-05-10 04:08:14.000000000 +0200
+++ c/a 2005-05-10 04:09:17.972505331 +0200
@@ -0,0 +1 @@
+.
$ diff -purN c b
diff -purN c/a b/a
--- c/a 2005-05-10 04:09:17.972505331 +0200
+++ b/a 1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-.
$ cd a
$ patch -p1   # < both patches (c&p)
<snip>
$ ls -l
total 0
Signature · 3 lines
If your dog is barking at the back door and your wife is
yelling at the front door, who do you let in first?
The dog, of course. He'll shut up once you let him in.
#3 lore raw
Quoted 18 lines · "Bodo Eggert <[email protected]>" <[email protected]>…
Quoted 2 lines · Andrew Morton

hmm, that's exciting. How to tell diff and patch to remove a zero-length file?

 $ md a b c
 $ touch a/a
 $ echo .>c/a
 $ diff -purN a c
 diff -purN a/a c/a
 --- a/a 2005-05-10 04:08:14.000000000 +0200
 +++ c/a 2005-05-10 04:09:17.972505331 +0200
 @@ -0,0 +1 @@
 +.
 $ diff -purN c b
 diff -purN c/a b/a
 --- c/a 2005-05-10 04:09:17.972505331 +0200
Quoted 8 lines
 +++ b/a 1970-01-01 01:00:00.000000000 +0100
 @@ -1 +0,0 @@
 -.
 $ cd a
 $ patch -p1   # < both patches (c&p)
 <snip>
 $ ls -l
 total 0

That's cheating!

-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel