This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
cyg_mtab_lookup()
- From: Roland Caßebohm <roland dot cassebohm at visionsystems dot de>
- To: ecos-discuss at sources dot redhat dot com
- Date: Mon, 24 Jun 2002 11:19:43 +0200
- Subject: [ECOS] cyg_mtab_lookup()
Hi,
there is a problem with cyg_mtab_lookup(). If name has not a leading '/' mte
will not be initialized and LOCK_FS() will fail.
In cyg_mtab_lookup():
// Unrooted file names go straight to current dir
if( **name != '/' ) return 0;
In open():
ret = cyg_mtab_lookup( &dir, &name, &mte );
if( 0 != ret )
{
cyg_fd_free(fd);
cyg_file_free(file);
FILEIO_RETURN(ENOENT);
}
LOCK_FS( mte );
Roland Caßebohm
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss