Skip to content
Snippets Groups Projects
Commit 14073bb4 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

filelist: Don't try to fopen() stdin (it's a stream, not a file)

parent fef6d137
No related branches found
No related tags found
No related merge requests found
......@@ -545,7 +545,13 @@ gib_list *feh_read_filelist(char *filename)
opt.magick_timeout = tmp_magick_timeout;
errno = 0;
if ((fp = fopen(filename, "r")) == NULL) {
if (!strcmp(filename, "/dev/stdin"))
fp = stdin;
else
fp = fopen(filename, "r");
if (fp == NULL) {
/* return quietly, as it's okay to specify a filelist file that doesn't
exist. In that case we create it on exit. */
return(NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment