fix mkdirp_below calls like I think Peter intended them

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@476 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Stefan Reinauer 2007-08-20 00:48:06 +00:00
parent e825daf11e
commit dd35e9c402
2 changed files with 1 additions and 7 deletions

View file

@ -155,12 +155,6 @@ done:
return ret;
}
int mkdirp(const char *dirpath, mode_t mode)
{
return mkdirp_below(".", dirpath, mode);
}
static int handle_directory(const char *name)
{
int n;

View file

@ -445,7 +445,7 @@ static int _write_file(char *filename, u8 *buffer, u32 len)
return -1;
}
mkdirp((const char *) dirname(path), 0755);
mkdirp_below(".", (const char *) dirname(path), 0755);
free(path);
fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);