
{"id":347,"date":"2009-11-22T15:13:58","date_gmt":"2009-11-22T20:13:58","guid":{"rendered":"http:\/\/www.ikriv.com\/blog\/?p=347"},"modified":"2009-11-22T15:13:58","modified_gmt":"2009-11-22T20:13:58","slug":"whats-in-a-name-a-patch-by-any-other-name-would-work-as-sweet","status":"publish","type":"post","link":"https:\/\/ikriv.com\/blog\/?p=347","title":{"rendered":"What\u2019s in a name? A patch by any other name would work as sweet"},"content":{"rendered":"<p>This week-end I was playing with some sources and I wanted to apply some patches to them. So, I downloaded  <a href=\"http:\/\/gnuwin32.sourceforge.net\/packages\/patch.htm\">patch.exe<\/a> from GNU and tried to run it on Windows Vista. &#8220;Gevalt!&#8221; said Vista. &#8220;We are under attack by evil robots!!! This program wants to do something funky with you machine, do you <i>really<\/i> want to allow that?&#8221;. That was the famous UAC feature that requires confirmation when programs try to make administrative-level changes to the system.<\/p>\n<p>But what kind of administrative changes did patch.exe try to do? Of course, it turned out that the program does not try to do anything wrong. It was its <b>name<\/b> that Windows did not like. If you rename it to something else, e.g. p.exe, it works just fine and without any warnings. Apparently, I am not the first to find this out: see <a href=\"http:\/\/www.mail-archive.com\/perl-win32-users@listserv.activestate.com\/msg37590.html\">http:\/\/www.mail-archive.com\/perl-win32-users@listserv.activestate.com\/msg37590.html<\/a>.<\/p>\n<p>Surely, one can understand Microsoft&#8217;s logic. A program named patch.exe cannot be up to something good, can it? It must be a virus or something.  Obviously, if the Bad Guys would write a malicious program they would name it patch.exe, or virus.exe, or at the very least will set something like <a href=\"http:\/\/www.faqs.org\/rfcs\/rfc3514.html\">the Evil bit<\/a>.<\/p>\n<p>BTW, it turned out that Windows has no objections against virus.exe. It&#8217;s patch.exe it is after.<\/p>\n<p>Indeed, there are more things in heaven and earth, Horatio, than are dreamt of in our philosophy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week-end I was playing with some sources and I wanted to apply some patches to them. So, I downloaded patch.exe from GNU and tried to run it on Windows <a href=\"https:\/\/ikriv.com\/blog\/?p=347\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":""},"categories":[4,18],"tags":[],"class_list":["entry","author-ikriv","post-347","post","type-post","status-publish","format-standard","category-hack","category-win32"],"_links":{"self":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=347"}],"version-history":[{"count":0,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/347\/revisions"}],"wp:attachment":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}