You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
ffserver: check chdir() return
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -499,7 +499,10 @@ static void start_children(FFStream *feed)
|
||||
}
|
||||
|
||||
/* 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);
|
||||
|
||||
|
Reference in New Issue
Block a user