From: Tom Rini Date: Tue, 18 Sep 2012 12:03:44 -0700 Subject: [U-Boot] [PATCH v2 5/8] FAT: Fix file contents listed as directory In-Reply-To: <1180961189.3414256.1346681282166.JavaMail.root@advansee.com> References: <20120902152115.2761D203B2F@gemini.denx.de> <1180961189.3414256.1346681282166.JavaMail.root@advansee.com> Message-ID: <20120918190344.GA19861@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Sep 03, 2012 at 04:08:02PM +0200, Beno??t Th??baudeau wrote: > Dear Wolfgang Denk, > > On Sunday, September 2, 2012 5:21:15 PM, Wolfgang Denk wrote: > > Dear Beno??t Th??baudeau, > > > > In message > > <2017658963.332562.1342790429735.JavaMail.root@advansee.com> you > > wrote: > > > With: > > > fatls mmc 0 /dir/file > > > dir: regular directory > > > file: regular file > > > > > > The previous code read the contents of file as if it were directory > > > entries to > > > list. This patch refuses to list file contents as if it were a > > > folder. > > > > But this means that "fatls" on a plain file stops working? > > > > This doesn't make sense to me. Or what am I missing? > > This already did not work before, because "fatls" is supposed to support only > directories: > > $ help fatls > fatls - list files in a directory (default /) > > Usage: > fatls [directory] > - list files from 'dev' on 'interface' in a 'directory' Note that ext2ls _also_ fails to ls files so we're being consistent as I believe Wolfgang was expecting that *ls of a file would work like real ls does, but that's not the case. Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: