mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Fixes nocompress:-handling in lar
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@477 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
dd35e9c402
commit
7fb3e5a9c5
1 changed files with 4 additions and 8 deletions
|
@ -208,21 +208,17 @@ int add_files(const char *name)
|
|||
char *c;
|
||||
|
||||
if (strstr(name, "nocompress:") == name) {
|
||||
name += 11;
|
||||
free(realname);
|
||||
realname = strdup(name + 11);
|
||||
} else {
|
||||
realname = strdup(name);
|
||||
}
|
||||
|
||||
realname = strdup(name);
|
||||
|
||||
if (realname == NULL) {
|
||||
fprintf(stderr, "Out of memory.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
c = strchr(realname, ':');
|
||||
|
||||
if (c != NULL)
|
||||
*c = '\0';
|
||||
|
||||
/* printf("... add_files %s\n", name); */
|
||||
if (stat(realname, &filestat) == -1) {
|
||||
fprintf(stderr, "Error getting file attributes of %s\n", name);
|
||||
|
|
Loading…
Add table
Reference in a new issue