mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
Force output of jail ID (if necessary) before excuting the command,
otherwise redirection of stdout to a file using block buffering will not complete in time.
This commit is contained in:
parent
092cd06fcd
commit
25639ca722
@ -80,8 +80,10 @@ main(int argc, char **argv)
|
||||
i = jail(&j);
|
||||
if (i == -1)
|
||||
err(1, "jail");
|
||||
if (iflag)
|
||||
if (iflag) {
|
||||
printf("%d\n", i);
|
||||
fflush(stdout);
|
||||
}
|
||||
if (username != NULL) {
|
||||
if (setgroups(ngroups, groups) != 0)
|
||||
err(1, "setgroups");
|
||||
|
Loading…
Reference in New Issue
Block a user