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:
Stefan Reinauer 2007-08-20 17:55:32 +00:00
parent dd35e9c402
commit 7fb3e5a9c5

View file

@ -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);