cannot write to IMFS at /etc

Arnout Vandecappelle arnout at mind.be
Mon Jun 14 10:14:49 UTC 2010


 Does the /etc directory exist?

 Regards,
 Arnout

On Friday 11 June 2010 07:42:23, Wolfram Wadepohl wrote:
> Hello,
> 
> trying to copy a hosts file from /ap4 (mounted root of CF) to /etc
> fopen("/etc/hosts", "w") everytime fails.
> 
> I'm using 4.6.99. Tracing down the issue to imfs_eval.c line 440:
>    /*
>     * We have evaluated the path as far as we can.
>     * Verify there is not any invalid stuff at the end of the name.
>     */
> 
> #440  for( ; path[i] != '\0'; i++) {
> #441    if ( !IMFS_is_separator( path[ i ] ) )
> #442      rtems_set_errno_and_return_minus_one( ENOENT );
>        }
> The debugger shows: path = 0x001CA531 -> "etc/hosts".
> 
> What's my mistake? Thx.

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  31BB CF53 8660 6F88 345D  54CC A836 5879 20D7 CF43



More information about the users mailing list