delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2016/06/23/00:00:16

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 10.46.1.38 with SMTP id 38mr1809865ljb.3.1466653636793;
Wed, 22 Jun 2016 20:47:16 -0700 (PDT)
X-Received: by 10.157.39.16 with SMTP id r16mr426464ota.11.1466653636700; Wed,
22 Jun 2016 20:47:16 -0700 (PDT)
Newsgroups: comp.os.msdos.djgpp
Date: Wed, 22 Jun 2016 20:47:16 -0700 (PDT)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=65.13.115.246;
posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
NNTP-Posting-Host: 65.13.115.246
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1b0fc8a5-abee-4738-8981-a135b856ab55@googlegroups.com>
Subject: "patch -d" hangs (even Ctrl-C fails to quit)
From: "rugxulo AT gmail DOT com [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Injection-Date: Thu, 23 Jun 2016 03:47:16 +0000
Bytes: 2362
Lines: 45
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

I think I found an obscure bug. "-d" is not something I've really used in
patch, but this is definitely some oddball behavior (arguably broken).
Yes, I can live without it, of course.   :-)

I don't know of a great way to reproduce this, so pardon any clumsy tests.

bug\nickname.old:

Nice to meet you today.
My online handle is Rugxulo.
Did you have a good breakfast?

bug\nickname.txt: (same as nickname.old, until patched)

bug\nickname.dif:

--- nickname.txt	2016-06-22 22:07:12 -0500
+++ nickname.new	2016-06-22 22:07:54 -0500
@@ -2 +2 @@
-My online handle is Rugxulo.
+My online handle is WhoCares.

run.bat (run from main dir, not within "bug\")

@echo off
if "%1"=="" goto end
if not exist %1.exe goto end
diff.exe -s bug\nickname.old bug\nickname.txt
%1.exe -d bug -i nickname.dif
echo ... not dead! ...
diff.exe -s bug\nickname.old bug\nickname.txt
copy bug\*.old bug\*.txt >NUL
:end

results.txt:

run pat254 -- okay
run pat259 -- okay
run pat261 -- fails to restore pwd, stays in "/bug"
run pat271 -- hangs the cpu, Ctrl-C fails, must reboot (Ctrl-Alt-Del)
run pat275 -- hangs the cpu, Ctrl-C fails, etc.

Since "current/v2gnu" only has PAT275B.ZIP, I figured it might be worth
mentioning this, even if "-d" is rarely used.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019