<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Wojno: Tag file</title>
    <link>http://christopher.wojno.com/articles/tag/file</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Exploration through Code</description>
    <item>
      <title>X11R6-R7 Upgrade Problem: elf_load_section: truncated ELF file</title>
      <description>&lt;h1&gt;The Problem&lt;/h1&gt;


	&lt;p&gt;I attempted to update &lt;span class="caps"&gt;X11&lt;/span&gt; from &lt;span class="caps"&gt;X11R6&lt;/span&gt;.7 to &lt;span class="caps"&gt;X11R7&lt;/span&gt;.3 about a month ago. However, I was not successful and after getting this cryptic message when running startxfce4:&lt;/p&gt;


&lt;pre&gt;elf_load_section: truncated ELF file
Abort&lt;/pre&gt;

	&lt;p&gt;Launching startx yields that same message repeated six times. Oddly enough, launching X worked and also had two truncated &lt;span class="caps"&gt;ELF&lt;/span&gt; files (or the same one repeated). So, X worked, despite the inability to read a few files. I was confounded to say the least.&lt;/p&gt;


	&lt;p&gt;I spent hours, which lead to days trying to find what &lt;span class="caps"&gt;ELF&lt;/span&gt; file was truncated. Google searches and digging through help forums turned up nothing. I did:&lt;/p&gt;


&lt;pre&gt;pkg_delete -rx ".*xorg.*" 
pkg_delete -rx ".*font-.*"&lt;/pre&gt;

	&lt;p&gt;(deleted everything xorg and that which depended on it), then reinstalled xorg (/usr/ports/x11/xorg) to no avail. I even updated from FreeBSD-6.1-RELEASE to FreeBSD-6.2-RELEASE.&lt;/p&gt;


	&lt;p&gt;As of today, I have resolved the problem and I almost lost my mind when I discovered that xinit, a critical component of startx (startx is invoked by startxfce4), was not even installed. Keep in mind, I was getting this error before I deinstalled everything, so I did not deinstall it inadventently and send myself on a wild goose chase.&lt;/p&gt;


	&lt;p&gt;I assume the port maintainers moved this component out of the xorg port for some reason when they went from &lt;span class="caps"&gt;X11R6&lt;/span&gt;.9 to R7.2. Indeed, the &lt;a href="http://www.freebsd.org/cgi/cvsweb.cgi/ports/x11/xinit/distinfo"&gt;dist file&lt;/a&gt; for the port xinit supports that conjecture.&lt;/p&gt;


	&lt;h1&gt;In Summary&lt;/h1&gt;


	&lt;p&gt;Simply &lt;span class="caps"&gt;INSTALL&lt;/span&gt;: /usr/ports/x11/xinit and you&amp;#8217;ll be able to use &lt;span class="caps"&gt;X11&lt;/span&gt; again. You need not deleted everything. Oh, please be sure you updated according to the /usr/ports/UPDATING file&amp;#8217;s directions. &lt;span class="caps"&gt;X11&lt;/span&gt; upgrades have always required special treatment (this one&amp;#8217;s no different).&lt;/p&gt;


	&lt;p&gt;Best of luck to you.&lt;/p&gt;</description>
      <pubDate>Sat, 17 Nov 2007 21:09:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:4a596106-27c5-43de-bcbf-578c6754c13b</guid>
      <author>Christopher Wojno</author>
      <link>http://christopher.wojno.com/articles/2007/11/17/x11r6-r7-upgrade-problem-elf_load_section-truncated-elf-file</link>
      <category>How-Tos</category>
      <category>freebsd</category>
      <category>file</category>
      <category>ELF</category>
      <category>truncated</category>
      <category>xinit</category>
      <category>X11</category>
      <category>update</category>
      <category>port</category>
    </item>
    <item>
      <title>Deleting Files and the DMCA</title>
      <description>&lt;p&gt;Trevor Johns clued me into an article that ran through &lt;a href="http://www.slashdot.org"&gt;/.&lt;/a&gt; recently concerning &lt;a href="http://www.wired.com/politics/onlinerights/news/2007/08/coupons"&gt;coupon fraud.&lt;/a&gt; I am not interested in the fraud part of the case, as some people are; rather, I take an interest in the hypothetical decision about the &lt;a href="http://thomas.loc.gov/cgi-bin/query/z?c105:H.R.2281.ENR:"&gt;&lt;span class="caps"&gt;DMCA&lt;/span&gt;.&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;What interests me is, if the &lt;span class="caps"&gt;DMCA&lt;/span&gt; is applicable in this case, what impact will the judge&amp;#8217;s decision play on the rest of the United States?&lt;/p&gt;


	&lt;p&gt;First, can the &lt;span class="caps"&gt;DMCA&lt;/span&gt; be reasonably applied in this case? I have no professional training, but I&amp;#8217;ll see what I can swing.&lt;/p&gt;


	&lt;h1&gt;Facts of the case&lt;/h1&gt;


	&lt;p&gt;What are they arguing about? You can pull out a crusty gem: &amp;#8220;posting code and instructions&amp;#8230;to circumvent copy protection on&amp;#8230;coupons&lt;sup&gt;&lt;a href="#fn1"&gt;1&lt;/a&gt;&lt;/sup&gt;.&amp;#8221; So that&amp;#8217;s the legal plot. The digital coupons, which are defensible property with inherent value, are guarded by a mechanism to prevent creating more than a set number of copies by a single user on a single machine.&lt;/p&gt;


	&lt;p&gt;For the sake of addressing issues before they crop up: No, it does not matter if you have many computers and print off the same coupon from each. No, it does not matter if you have multiple users on a machine and the mechanism operates on a per-user basis (allowing you to create many accounts on the computer and therefore print many coupons off without deleting files or changing registry settings). All of that is irrelevant. What matters are the facts of the case because that is how law in the United States works. Can you make a trade secret argument here? Sure, but that has nothing to do with this case.&lt;/p&gt;


	&lt;p&gt;To regress, coupons are (and should still be considered today, even if issued digitally) a transference of right to a consumer (or  a set of consumers) by the issuing entity. The coupon is merely tangible proof of such transference. The proof is what the entity is trying to protect against copying.&lt;/p&gt;


	&lt;h1&gt;The (not-so) Clever Author&lt;/h1&gt;


	&lt;p&gt;Let&amp;#8217;s digress for a moment and enter the world of book publishing. Authors write the books to contain (well&amp;#8230; sometimes) information or a (good) story. Publishers print the books and they are distributed to the public for sale. Authors copyright their work (if they&amp;#8217;re smart that is) and transfer that right to copy to the publishers, either in part or, more frequently, in whole. Assume that this author is more clever a programmer than a lawyer (didn&amp;#8217;t get a Copyright). When attempting to get a publisher for his or her new book, a mechanism is included in the text to frustrate a publisher&amp;#8217;s attempt to make more than one copy. Should the book publisher attempt to give the book to someone else to read and deliberately modify it or the environment that mechanism expects to do so, then the publisher &lt;em&gt;may&lt;/em&gt; have violated the &lt;span class="caps"&gt;DMCA&lt;/span&gt;. Is it wrong that the publisher will profit from the work of this seemingly clever author? You bet. Is it illegal? Probably. Will the &lt;span class="caps"&gt;DMCA&lt;/span&gt; save the day? Very unlikely. Why?&lt;/p&gt;


	&lt;h2&gt;Bad Media, bad!&lt;/h2&gt;


	&lt;p&gt;To further digress, this is why I dislike the bulk of the news media. This article took a story and developed it only to the point where it entertains readers but does not convey any insightful information. I suppose that is in accord with the media mantra: &amp;#8220;report the truth.&amp;#8221; It is not the whole truth, but it is elementary fact-finding. I think it is important that this fact-finding (at any level) is done, but I would prefer to see more developed conclusions to these &amp;#8220;stories.&amp;#8221;&lt;/p&gt;


	&lt;h2&gt;Books and Coupons&lt;/h2&gt;


	&lt;p&gt;To relate the publisher and the coupons: With coupons, the author of the &amp;#8220;work&amp;#8221; is the issuing entity. It transfers the right to print coupons to the coupon-printing website which, in turn, transfers the right to you to print a coupon. Our author and publisher are in a situation similar to a coupon issuer and a coupon consumer (respectively).&lt;/p&gt;


	&lt;h1&gt;Legal Fun&lt;/h1&gt;


	&lt;p&gt;Back to our not-so-smart author/programmer and his low-down, dirty publisher (not to say that all publishers are low-down and dirty). Why does the &lt;span class="caps"&gt;DMCA&lt;/span&gt; not apply here? Go to the law. Section 1201 of the &lt;span class="caps"&gt;DMCA&lt;/span&gt; states: (emphasis added) &amp;#8220;No person shall circumvent a technological measure that &lt;em&gt;effectively&lt;/em&gt; controls access to a work protected under this title&lt;sup&gt;&lt;a href="#fn2"&gt;2&lt;/a&gt;&lt;/sup&gt;.&amp;#8221; Here&amp;#8217;s an out: will the judge consider registry keys and files as &amp;#8220;effective&amp;#8221; mechanisms to prevent the copying of those coupons? John Stottlemire (the defendant in the coupon case) and his counsel are banking on not. Observe how obvious the defendant is playing into this section of the &lt;span class="caps"&gt;DMCA&lt;/span&gt; as Kravets quotes him, &amp;#8220;All I did was erase files or registry keys. Nothing was hacked. Nothing was decoded that was any way&lt;sup&gt;&lt;a href="#fn1"&gt;1&lt;/a&gt;&lt;/sup&gt;.&amp;#8221; Brilliant. Translate: Judge, the not-so-smart coupon printer didn&amp;#8217;t take enough precautions to protect his right to copy. Judge thinks: well, that wasn&amp;#8217;t &amp;#8220;effective&amp;#8221; now was it?&lt;/p&gt;


	&lt;p&gt;Saying case-closed is premature. The judge can be clueless (not to say he or she is, I have not met the individual), but it is possible. Now what? The case hinges on that single element. Section 1201.b. includes providing instructions and software (for free or otherwise) about circumventing the hypothetically effectively protected property. Hypothetically, he&amp;#8217;s going to jail.&lt;/p&gt;


	&lt;p&gt;Not convincing enough? Try Section 1202.b &amp;#8220;REMOVAL &lt;span class="caps"&gt;OR ALTERATION OF COPYRIGHT MANAGEMENT INFORMATION&lt;/span&gt;- No person shall, without the authority of the copyright owner or the law intentionally remove or alter any copyright management information&lt;sup&gt;&lt;a href="#fn2"&gt;2&lt;/a&gt;&lt;/sup&gt;.&amp;#8221; If you read Section 1202.c.7&lt;sup&gt;&lt;a href="#fn2"&gt;2&lt;/a&gt;&lt;/sup&gt;, you&amp;#8217;ll see that the registry keys can and will likely be construed as a copyright management information.&lt;/p&gt;


	&lt;h1&gt;The Unlikely Heroes&lt;/h1&gt;


	&lt;p&gt;This doesn&amp;#8217;t look good for John Stottlemire (oh and I find it asinine that he&amp;#8217;s being associated with &lt;span class="caps"&gt;DVD&lt;/span&gt; John&lt;sup&gt;&lt;a href="#fn1"&gt;1&lt;/a&gt;&lt;/sup&gt; based on shared first names and skiffs with copyright, the talent levels just are not on par). But oh, whoever will save him!? Well. Microsoft could (I know what you&amp;#8217;re thinking: Christopher has lost it. Why would Microsoft step in? ). They are not the only ones. Guess what? Your operating system manages files. It also provides a method to delete those files. Oops, your operating system just violated 1202. Oh, they&amp;#8217;re not a non-profit educational institution or &lt;span class="caps"&gt;ISP&lt;/span&gt;? They might be liable too!? It&amp;#8217;s not my fault your honor! Microsoft let me delete my files and I&amp;#8230;&lt;em&gt;sniff&lt;/em&gt;... I&amp;#8230; Just couldn&amp;#8217;t stop!&lt;/p&gt;


	&lt;p&gt;Long shot? Why? Not-DVD-John here did the same thing: created something to help the public circumvent/alter copyright management information. I could see any file system manufacturer or distributor (which Microsoft definitely is) getting snagged in this. How could they cover themselves against liability? Implement their own copy protection scheme that the operating system manufacturer could sue &lt;em&gt;you&lt;/em&gt; for in the event someone else sues them because you cracked the copy-protection scheme. Microsoft already has this &lt;a href="http://www.microsoft.com/presspass/features/2006/oct06/10-04SoftwareProtection.mspx"&gt;well covered,&lt;/a&gt; especially in Vista.&lt;/p&gt;


	&lt;p&gt;How else can you circumvent this &lt;em&gt;hypothetically&lt;/em&gt; &amp;#8220;effective&amp;#8221; management? Reformat/reinstall your disk/operating systm (not regularly feasible, but still possible), employ disk-rollback software (you see this in school libraries, at the end of the day, you start from scratch),  or delete random files from your computer (you laugh or are afraid, but I used to do this as a kid to see what would break). Any of these actions will trigger it. Any company or person that provides the means to do so will be liable for &lt;span class="caps"&gt;DMCA&lt;/span&gt; violations.&lt;/p&gt;


	&lt;p&gt;In light of this, it is unlikely that, even if the judge did think a file is an effective protection method, he would never rule against so many major players.&lt;/p&gt;


	&lt;p&gt;Not to sound as if you wasted your time (if you learned something, you didn&amp;#8217;t), but this entire article is a waste of time, aside from prompting 2 discussions about the applicability of the &lt;span class="caps"&gt;DMCA&lt;/span&gt;. The judge will likely never find it applicable. Not worth mentioning more than once is Not-DVD-John did wrong, but not by the &lt;span class="caps"&gt;DMCA&lt;/span&gt;.&lt;/p&gt;


	&lt;h2&gt;Disclaimer&lt;/h2&gt;


	&lt;p&gt;I am not a lawyer and I have had no professional training in the field of any law. You are responsible for your own actions, always.&lt;/p&gt;


	&lt;p id="fn1"&gt;&lt;sup&gt;1&lt;/sup&gt; Kravets, David. &amp;#8220;Coupon Hacker Faces &lt;span class="caps"&gt;DMCA&lt;/span&gt; Lawsuit&amp;#8221;. &lt;em&gt;Wired.&lt;/em&gt; Aug 20, 2007. Aug 21, 2007. &amp;lt;&lt;a href ="http://www.wired.com/politics/onlinerights/news/2007/08/coupons"&gt;http://www.wired.com/politics/onlinerights/news/2007/08/coupons&lt;/a&gt;&amp;gt;.&lt;/p&gt;


	&lt;p id="fn2"&gt;&lt;sup&gt;2&lt;/sup&gt; &amp;#8220;Digital Millennium Copyright Act&amp;#8221;. &lt;em&gt;United States Government.&lt;/em&gt; House of Representatives. &amp;lt;&lt;a href="http://thomas.loc.gov/cgi-bin/query/z?c105:H.R.2281.ENR:"&gt;http://thomas.loc.gov/cgi-bin/query/z?c105:H.R.2281.ENR:&lt;/a&gt;&amp;gt;.&lt;/p&gt;</description>
      <pubDate>Tue, 21 Aug 2007 12:00:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:d43a8ae2-b37c-4f8d-a36f-7af629c4bf08</guid>
      <author>Christopher Wojno</author>
      <link>http://christopher.wojno.com/articles/2007/08/21/deleting-files-and-the-dmca</link>
      <category>Legal</category>
      <category>DMCA</category>
      <category>delete</category>
      <category>file</category>
      <category>legal</category>
      <category>absurd</category>
      <category>waste</category>
      <category>of</category>
      <category>time</category>
    </item>
  </channel>
</rss>
