freebsd-skq/usr.sbin/pkg_install/add
murray d4697121d1 DTRT for packages read from STDIN:
$ cat pkg.tgz | pkg_add -

The above command line will fail on -CURRENT or -STABLE, and
therefore, so will sysinstall if you try to install additional
packages through the network (FTP) from a multiuser system.  Because
of the different environment during installation (wrt the playpen),
this bug does not manifest itself during initial installs, and users
may install packages from the network just fine at that time.

This bug was fixed in OpenBSD 4 years ago.

----------------------------
revision 1.4
date: 1998/04/07 05:56:13;  author: marc;  state: Exp;  lines: +13 -8
fix package input from standard input -- the program tried to process
stdin twice.  Note: it assumes stdin is a compressed tar file.
----------------------------

PR:		conf/36606
Obtained from:	OpenBSD
MFC after:	2 weeks
2002-04-02 12:47:10 +00:00
..
add.h WARNS=2 cleanup. 2001-10-10 06:58:42 +00:00
extract.c Fix SCM ID's. 2002-04-01 09:39:07 +00:00
futil.c Fix SCM ID's. 2002-04-01 09:39:07 +00:00
main.c Fix SCM ID's. 2002-04-01 09:39:07 +00:00
Makefile WARNS=2 cleanup. 2001-10-10 06:58:42 +00:00
perform.c DTRT for packages read from STDIN: 2002-04-02 12:47:10 +00:00
pkg_add.1 The user wants to ensure, not insure, that the package isn't going to 2001-10-15 13:49:51 +00:00