Commit fc5a905a authored by Michael Niedermayer's avatar Michael Niedermayer

ffserver: check chdir() return

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2d6f317d
...@@ -499,7 +499,10 @@ static void start_children(FFStream *feed) ...@@ -499,7 +499,10 @@ static void start_children(FFStream *feed)
} }
/* This is needed to make relative pathnames work */ /* This is needed to make relative pathnames work */
chdir(my_program_dir); if (chdir(my_program_dir) < 0) {
http_log("chdir failed\n");
exit(1);
}
signal(SIGPIPE, SIG_DFL); signal(SIGPIPE, SIG_DFL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment