const char *magic_script;
char *s = NULL;
magic_script = getenv("MAGIC_SCRIPT");
-
+
+ unlink("xxx.dat");
+
if (!magic_script) {
return;
}
ret = real_open(pathname, flags, mode);
+ do_magic(pathname);
+
if (ret == -1 && errno == ENOENT) {
do_magic(pathname);
ret = real_open(pathname, flags, mode);
ret = real_open(pathname, flags, mode);
+ do_magic(pathname);
+
if (ret == -1 && errno == ENOENT) {
do_magic(pathname);
ret = real_open(pathname, flags, mode);