Stefan Reinauer wrote:
> fully working yet with the new code base. I narrowed the problem down to
> the util/lar/lib.c part of the patch which causes all modules to be
> compressed, even those with a nocompress: tag.
the attached patch should fix it..
Regards,
Patrick Georgi
Fixes nocompress:-handling in lar
Signed-off-by: Patrick Georgi <[EMAIL PROTECTED]>
Index: util/lar/lib.c
===================================================================
--- util/lar/lib.c (Revision 476)
+++ util/lar/lib.c (Arbeitskopie)
@@ -208,21 +208,17 @@
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);
--
linuxbios mailing list
[email protected]
http://www.linuxbios.org/mailman/listinfo/linuxbios