From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qy0-f177.google.com ([209.85.216.177]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PFDqJ-0008AM-09 for linux-mtd@lists.infradead.org; Sun, 07 Nov 2010 22:36:07 +0000 Received: by qyk9 with SMTP id 9so40412qyk.15 for ; Sun, 07 Nov 2010 14:36:05 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <4CD11C03.3090207@parrot.com> Date: Sun, 7 Nov 2010 23:36:04 +0100 Message-ID: Subject: Re: Suggested patch: reset errno after isatty() From: Ketil Froyn To: Mike Frysinger Content-Type: text/plain; charset=ISO-8859-1 Cc: "linux-mtd@lists.infradead.org" , Matthieu CASTET List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, Nov 6, 2010 at 9:54 AM, Mike Frysinger wrote: > > doesnt libmtd provide read functions already ? > -mike I'm not familiar with libmtd, but the latest release (v1.4.1) just did it itself with pread, and since that failed I fixed it. The new code in the repo, which appears to use libmtd, didn't work for me, and the fix appeared more complicated. My patch is for v1.4.1, which should also make it easier to integrate for package maintainers, if they wish, pending a working rewrite. Ketil