If fchdir() fails, call err() instead of warn().
This commit is contained in:
parent
3694294ca5
commit
52af39633a
@ -613,7 +613,7 @@ static void
|
||||
process_mandir(char *dir_name, char *section)
|
||||
{
|
||||
if (fchdir(starting_dir) < 0)
|
||||
warn("fchdir");
|
||||
err(1, "fchdir");
|
||||
if (already_visited(NULL, dir_name, section == NULL))
|
||||
return;
|
||||
check_writable(dir_name);
|
||||
|
Loading…
Reference in New Issue
Block a user