summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/add
Commit message (Collapse)AuthorAgeFilesLines
* Prevent buffer overflow in format_cmd() by properly tracking maximumjkh2003-01-061-1/+1
| | | | | | buffer size. Reported by: Lionnel CHAPTAL <Lionnel.Chaptal@IPricot.com> MFC after: 1 week
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* english(4) police.schweikh2002-12-271-1/+1
|
* Uniformly refer to a file system as "file system".ru2002-12-121-1/+1
| | | | Approved by: re
* Teach pkg_add -r how to find 4.7-RELEASE packages with an appropriatebmah2002-10-081-0/+1
| | | | | | | | osreldate. (Actually, due to differences in package compression formats, I'm not sure that a -CURRENT pkg_add -r will do the right thing in this case, once it finds them.)
* Update to use *.tbz suffix, also update example URL.bmah2002-09-101-3/+3
| | | | | | | | While I'm here, fix a gramm-o. PR: 42576 Submitted by: Jeff Ito <jeffi@rcn.com> MFC after: 1 day
* Fix minor off-by-one error.bmah2002-09-091-1/+1
| | | | Submitted by: jhb
* Make pkg_install go to the right place for 4.6-RELEASE and 4.6.2-RELEASEbmah2002-09-091-0/+2
| | | | | | | packages. Pointed out by: obrien Reviewed by: jhb
* When installing package from a local file assume that all subsequentsobomax2002-09-031-2/+6
| | | | | | | | autoinstalled dependencies will have the same extension, not just ".tbz". Pointy hat to: obrien X-MFC after: -1 day
* Find remaining hardcoded gzip bits and change to bzip2 bits.obrien2002-08-252-4/+7
| | | | | Mark with XXX so someone that cares about being able to handle either bziped or gziped packages knows where the remaining nits are.
* When extracting package pass `-p' option to tar(1), so that files aresobomax2002-08-021-1/+1
| | | | extracted with correct permissions.
* Reorder libraries to fix static linking (libssl depends on libcrypto, sodes2002-06-121-2/+2
| | | | | | it must come before libcrypto in LDADD) Reviewed by: bde
* libfetch now depends on libcrypto and libssl.ru2002-06-061-0/+5
|
* Consistancy check: s/file system/filesystem/gtrhodes2002-05-161-1/+1
|
* - Make use of DEPOROGINs (if there are any) when installing package;sobomax2002-05-141-35/+67
| | | | | | | - fix few bogosities here and there; - move some common routines into the library. MFC after: 2 weeks
* Remove cross reference to pkg_update(1).eric2002-05-111-1/+0
|
* replace __FUNCTION__ with standardized __func__.alfred2002-05-111-10/+10
| | | | Requested by: jhb
* fix build:alfred2002-05-111-10/+14
| | | | | | | | you may not use string concatination with __FUNCTION__, replace all occurances of: __FUNCTION__ ": error string" with: "%s: error string"
* Use `The .Nm utility'charnier2002-04-201-1/+2
|
* DTRT for packages read from STDIN:murray2002-04-021-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | $ 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
* Fix SCM ID's.obrien2002-04-014-19/+11
|
* Increase the number of packages that can be installed by an order ofobrien2001-10-161-1/+1
| | | | | magnitude. Geez, this is Unix, what is with the arbitrary needless constants.
* The user wants to ensure, not insure, that the package isn't going todd2001-10-151-1/+1
| | | | damage their system.
* WARNS=2 cleanup.sobomax2001-10-106-27/+30
| | | | | Tested on: i386, alpha MFC after: 2 weeks
* - Allow package archive to be created from a locally installed package. Thissobomax2001-10-081-8/+12
| | | | | | | | | allows for an easy way to backup old version of port prior to installing a new one; - silence compiler warnings by killing some unused variables and adding all includes necessary. MFC after: 2 weeks
* Fix segfault introduced in previous commit (when adding local packages).sobomax2001-09-171-2/+3
|
* Use a colon to separate the user and group when executing chown(1).dd2001-09-111-2/+2
| | | | | | | Periods aren't supported anymore. PR: 30507 Submitted by: Georg-W. Koltermann <gwk@sgi.com>
* Fixes problem with pkg_add -r when adding multiple pkgs.unfurl2001-09-071-0/+1
| | | | Reviewed by: chris
* Handle snprintf() returning < 0 (not just -1)brian2001-08-201-3/+3
| | | | MFC after: 2 weeks
* Handle snprintf() returning -1.brian2001-08-201-3/+3
| | | | MFC after: 2 weeks
* Remove duplicate umask(2) call.sobomax2001-08-151-1/+0
| | | | | | PR: dusty/7998 Submitted by: Stefan Eggers <seggers@semyam.dinoco.de> MFC after: 2 weeks
* Spell "FreeBSD" with "F" and "BSD" in uppercase.ru2001-08-131-1/+1
|
* Reduce private "lesser known" function redirection to improve clarity.obrien2001-08-132-19/+28
| | | | Approved by: jkh
* mdoc(7) police: protect trailing full stops of abbreviationsru2001-08-101-1/+1
| | | | with a trailing zero-width space: `e.g.\&'.
* Cosmetics: replace dozen instances of "(tmp = getenv(PKG_DBDIR) ? tmp : ↵sobomax2001-08-021-4/+4
| | | | | | | | DEF_LOG_DIR)" with macro. MFC after: 1 month
* Usability tweak:sobomax2001-08-021-13/+13
| | | | | | | | | Use '' quotes instead of `' to delimit names of files and packages in warning and error messages, because it is easier to cut-n-paste name in question that way (single click) without confusing the shell. And yes, I know that it is less eye-candy... MFC after: 1 month
* The security officer requested this be backed out for discussion.obrien2001-07-281-18/+18
|
* Remove s_strl*(). I am not sure what was thought they accomplished.obrien2001-07-281-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When reading the code I had to stop, say "ok, what does *these* modifications of strl*() do? Pull out grep. Oh, not in add/, maybe above in ../lib/? Yep. So what do they do? Comments above them are misleading, guess I'll have to read the code. Oh, they just test strl* against the size and return the result of the test. Now I can continue to read the code I was. The uses of s_strl*() then test that result and errx()'s. Lets think about the "optimized" code I am removing: In general the compiler pushes the three args to strl* onto the stack and calls s_strl*. s_strl* has to indirectly access 3 args from the stack. Then push them on the stack a 2nd time for the real strl* call. s_strl* then pops the return from strl* off the stack; or moves it from the register it was returned in, to the register where tests can happen. s_strl* then pops the three arguments to strl*. Perform the test, push the result of the test, or move it from the result register to the return value register. The caller to s_strl* now has to either pop the return value of s_strl* or move it from the return value register to the test register. The caller then pops the three args to s_strl* off the stack (the same args that s_strl* itself had to pop off after the real call to strl*). The s_strl* caller then performs a simular test to what has already been done, and conditionally jumps. By doing things this way, we've given the compiler optimizer less to work with. Also, please don't forget the that call to s_strl* has possibly jumped to code not in the cache due to being far away from the calling code, thus causing a pipeline stall. So where is the "optimization" from s_strl*? It isn't code clarity. It isn't code execution speed. It isn't code size either.
* Only match the first osreldate date range for constructing the FTP URL,kris2001-07-261-1/+1
| | | | | | not all of them. Noticed by: obrien
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-4/+3
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Correct a reversion in r1.39 which introduced a new instance of strcpy()kris2001-07-191-4/+6
| | | | after r1.38 had attempted to remove them all.
* Remove whitespace at EOL.dd2001-07-151-29/+29
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* bzip2(1) is in the base system - we don't need /usr/local/bin in the PATHsobomax2001-07-101-1/+1
| | | | anymore.
* Properly quote recursive pkg_add operations so that filenames withjkh2001-06-111-1/+1
| | | | spaces or special characters in them won't barf.
* Fixed pkg_add so when it does not find a package, it returns != 0.pirzyk2001-06-041-1/+2
| | | | | | PR: bin/23083 Submitted by: Patch submitted by Maxime Henrion <mux@qualys.com> MFC after: 2 weeks
* Cross reference pkg_update(1).eric2001-05-311-0/+1
| | | | Approved by: murray
* Style policy: reformat multiline comments to conform to style(9).sobomax2001-05-171-2/+6
|
* Clean up some of the evil string handling in this code, replacekris2001-05-121-47/+75
| | | | | | | | warnx()+exit() with errx() and replace a big if..then..else construct to determine the package download directory with a lookup table. Reviewed by: jkh MFC after: 2 weeks
* rcsid style fix.obrien2001-05-091-6/+5
|
OpenPOWER on IntegriCloud