mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Simpler fix to the find bug reported by Terry Lambert <terry@lambert.org>
[ Find to a file vs. to stdout ] produces different output because find does not flush stdout when doing a -print. Submitted by: Jeffrey Hsu <hsu@freefall.freebsd.org>
This commit is contained in:
parent
3eb77f2c54
commit
e9f1a293f1
1 changed files with 3 additions and 0 deletions
|
|
@ -239,6 +239,9 @@ f_exec(plan, entry)
|
|||
if (plan->flags == F_NEEDOK && !queryuser(plan->e_argv))
|
||||
return (0);
|
||||
|
||||
/* make sure find output is interspersed correctly with subprocesses */
|
||||
fflush(stdout);
|
||||
|
||||
switch (pid = vfork()) {
|
||||
case -1:
|
||||
err(1, "fork");
|
||||
|
|
|
|||
Loading…
Reference in a new issue