* Bugfix for romfs
@ 2009-07-03 12:45 Øyvind Harboe
0 siblings, 0 replies; only message in thread
From: Øyvind Harboe @ 2009-07-03 12:45 UTC (permalink / raw)
To: eCos Disuss
[-- Attachment #1: Type: text/plain, Size: 333 bytes --]
2009-04-28 Øyvind Harboe <oyvind.harboe@zylin.com>
* src/romfs.c: file name comparsion was broken for two files
with the same stem. A directory/file called "foo" would not
be found if there was a file "foo*" before "foo".
--
Øyvind Harboe
Embedded software and hardware consulting services
http://www.zylin.com
[-- Attachment #2: fixromfs.txt --]
[-- Type: text/plain, Size: 1154 bytes --]
Index: current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/rom/current/ChangeLog,v
retrieving revision 1.27
diff -u -w -r1.27 ChangeLog
--- current/ChangeLog 28 Apr 2009 13:06:11 -0000 1.27
+++ current/ChangeLog 3 Jul 2009 12:44:06 -0000
@@ -1,3 +1,9 @@
+2009-04-28 Øyvind Harboe <oyvind.harboe@zylin.com>
+
+ * src/romfs.c: file name comparsion was broken for two files
+ with the same stem. A directory/filed called "foo" would not
+ be found if there was a file "foo*" before "foo".
+
2009-04-28 John Dallaway <john@dallaway.org.uk>
cdl/romfs.cdl: Use CYGPKG_IO_FILEIO as the parent.
Index: current/src/romfs.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/rom/current/src/romfs.c,v
retrieving revision 1.10
diff -u -w -r1.10 romfs.c
--- current/src/romfs.c 29 Jan 2009 17:48:54 -0000 1.10
+++ current/src/romfs.c 3 Jul 2009 12:44:07 -0000
@@ -336,7 +336,7 @@
{
for ( ; len > 0 && *a && *b && *a == *b ; a++, b++, len-- )
;
- return ( len == 0 );
+ return ( len == 0 ) && (*a==0);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-03 12:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-03 12:45 Bugfix for romfs Øyvind Harboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).