diff options
author | jkh <jkh@FreeBSD.org> | 2000-03-18 08:46:23 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 2000-03-18 08:46:23 +0000 |
commit | 1ed162731b0b7073dfba31f1298772cd6947d679 (patch) | |
tree | f95642cfffacf5a0ad95cb8c2eab89ccda5a94d1 /usr.sbin/sysinstall/package.c | |
parent | 3bd4e62fed69d468cdb15c7bd8c83c0564d3d181 (diff) | |
download | FreeBSD-src-1ed162731b0b7073dfba31f1298772cd6947d679.zip FreeBSD-src-1ed162731b0b7073dfba31f1298772cd6947d679.tar.gz |
We still need a hack for rsaref package; add it. This doesn't
affect CDs since they don't contain the rsaref package anyway.
Diffstat (limited to 'usr.sbin/sysinstall/package.c')
-rw-r--r-- | usr.sbin/sysinstall/package.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/package.c b/usr.sbin/sysinstall/package.c index 8901d08..732f643 100644 --- a/usr.sbin/sysinstall/package.c +++ b/usr.sbin/sysinstall/package.c @@ -166,9 +166,13 @@ package_extract(Device *dev, char *name, Boolean depended) pipe(pfd); pid = fork(); if (!pid) { + extern int _interactiveHack; + dup2(pfd[0], 0); close(pfd[0]); - dup2(DebugFD, 1); - close(2); + if (!_interactiveHack) { + dup2(DebugFD, 1); + close(2); + } close(pfd[1]); if (isDebug()) i = execl("/usr/sbin/pkg_add", "/usr/sbin/pkg_add", "-v", "-", 0); |