mirror of
https://github.com/slicer69/doas
synced 2024-07-09 03:55:50 +00:00
Minor fixes to avoid compiling error on FreeBSD following Linux fixes.
This commit is contained in:
parent
c8cb4d999e
commit
fd79e385d7
6
doas.c
6
doas.c
|
@ -510,17 +510,17 @@ main(int argc, char **argv)
|
|||
}
|
||||
pam_end(pamh, pam_err);
|
||||
|
||||
/* #ifndef linux */
|
||||
#ifndef linux
|
||||
/* Re-establish stdin */
|
||||
if (dup2(temp_stdin, STDIN_FILENO) == -1)
|
||||
err(1, "dup2");
|
||||
close(temp_stdin);
|
||||
/* #else */
|
||||
#else
|
||||
/* Re-establish stdout */
|
||||
close(1);
|
||||
if (dup2(temp_stdout, 1) == -1)
|
||||
err(1, "dup2");
|
||||
/* #endif */
|
||||
#endif
|
||||
#else
|
||||
#error No auth module!
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user