﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
190	Libc path rewriting is not working for fork()ed processes	Yuri Dario	bird	"Use of the klibccfg pathrewriter dll works only for main process: child forked processes can use only predefined libc rewriting rules (e.g. /@tmpdir).

This could be a dll init fault.

Sample testcase:

{{{

#include <sys/stat.h>

#include <stdio.h>
#include <unistd.h>

//#define DIR ""/@tmpdir""
#define DIR ""/$e/dati/yuri""

void test_dir( void)
{
   int ret;
   struct stat st;

   printf( ""%d test dir\n"", getpid());
   ret = stat( DIR, &st);
   if (ret != 0) {
	printf( ""%d test dir failed\n"", getpid());
	return;
   }
   printf( ""%d test dir ok\n"", getpid());
}


void test( void)
{
   FILE* f;

   printf( ""%d test file\n"", getpid());
   f = fopen( DIR ""/fax.odt"", ""rb"");
   if (f == NULL) {
	   printf( ""%d test file failed\n"", getpid());
	return;
   }
   fclose(f);
   printf( ""%d test file OK\n"", getpid());
}

void main( void)
{
   printf( ""pid %d\n"", getpid());

   fork();

   test();
   test_dir();

}

}}}
"	defect	closed	normal	libc-0.6.5	libc-backend	0.6.2	normal	wontfix	klibccfg	Steven Levine
