mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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:
parent
e825daf11e
commit
dd35e9c402
2 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue