← Commit list

6eaac025a

Vladimir Dronnikov
Vladimir Dronnikov
2009-11-07
FAILED Duration: 36s

Subject

fbsplash: allow compressed image files

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/fbsplash.c+8 -1
@@ -221,7 +221,14 @@ static void fb_drawimage(void)
unsigned char *pixline;
unsigned i, j, width, height, line_size;
- theme_file = xfopen_stdin(G.image_filename);
+ if (LONE_DASH(G.image_filename))
+ theme_file = stdin;
+ else {
+ int fd = open_zipped(G.image_filename);
+ if (fd < 0)
+ bb_simple_perror_msg_and_die(G.image_filename);
+ theme_file = fdopen(fd, "r");
+ }
head = xmalloc(256);
/* parse ppm header