Skip site navigation (1)Skip section navigation (2)

CVS log for src/usr.sbin/pkg_install/add/extract.c

[BACK] Up to [FreeBSD] / src / usr.sbin / pkg_install / add

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Dec 30 10:58:14 2011 UTC (6 weeks, 1 day ago) by uqs
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +1 -1 lines
SVN rev 228990 on 2011-12-30 10:58:14Z by uqs

Spelling fixes for usr.sbin/

Revision 1.47.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (3 months ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.47.2.1: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)

Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)

Revision 1.47: download - view: text, markup, annotated - select for diffs
Tue May 17 19:11:47 2011 UTC (8 months, 3 weeks ago) by flz
Branches: MAIN
CVS tags: RELENG_9_BP
Branch point for: RELENG_9
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +1 -1 lines
SVN rev 222035 on 2011-05-17 19:11:47Z by flz

Backout libinstall.a -> libpkg commit.

Discussed with:	erwin, brooks, bapt

Revision 1.45.14.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 3 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)

Revision 1.45.10.1.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 3 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.45.10.1: preferred, colored; next MAIN 1.45.12.1: preferred, colored
Changes since revision 1.45.10.1: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)

Revision 1.45.10.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.45.10.1: preferred, colored; next MAIN 1.45.12.1: preferred, colored
Changes since revision 1.45.10.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)

Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Apr 23 11:07:43 2010 UTC (21 months, 2 weeks ago) by flz
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +1 -1 lines
SVN rev 207113 on 2010-04-23 11:07:43Z by flz

- Take libinstall.a out of pkg_install and make it a proper shared library.
- Rework the wrapper support to check libpkg version as well as pkg_install
version.
- Add libfetch to _prebuild_libs.
- There are no new features introduced.

Notes: the API is not stable, so basically, do not use libpkg in your
projects for now. Also there's no manpage for libpkg yet, because the API
will change drastically. I repeat, do not use libpkg for now.

Revision 1.45.12.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)

Revision 1.45.10.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.45.10.1: preferred, colored; next MAIN 1.45.12.1: preferred, colored
Changes since revision 1.45.10.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)

Revision 1.45.10.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_2_BP, RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_2, RELENG_8_1, RELENG_8_0
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)

Revision 1.45.8.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)

Revision 1.45.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)

Revision 1.43.2.3.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.43.2.3: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.2.3: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)

Revision 1.43.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 7 11:31:58 2008 UTC (3 years, 10 months ago) by flz
Branches: RELENG_6
CVS tags: RELENG_6_4_BP
Branch point for: RELENG_6_4
Diff to: previous 1.43.2.2: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.2.2: +0 -0 lines
Synchronize pkg_install with HEAD:

- Add pkg_updating,
- Remove pkg_sign,
- Support for 8-CURRENT,
- Style cleanup (__P use),
- ... and much more.

Revision 1.43.2.2: download - view: text, markup, annotated - select for diffs
Wed Sep 19 08:41:27 2007 UTC (4 years, 4 months ago) by krion
Branches: RELENG_6
CVS tags: RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3
Diff to: previous 1.43.2.1: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.1: +1 -1 lines
MFC: extract.c:1.45

  date: 2007/08/23 13:05:10;  author: krion;  state: Exp;  lines: +1 -1
  Fix pkg_add behaviour to preserve pathnames.

  PR:             bin/93915 bin/109134
  Submitted by:   Jason Heiss <heissj@yahoo-inc.com>, Constantin Stefanov<cstef@mail.ru>
  Approved by:    re@ (kensmith)
  MFC after:      7 days

Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Aug 23 13:05:10 2007 UTC (4 years, 5 months ago) by krion
Branches: MAIN
CVS tags: RELENG_8_BP, RELENG_7_BP, RELENG_7_4_BP, RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0, RELENG_7
Branch point for: RELENG_8, RELENG_7_4, RELENG_7_3, RELENG_7_2, RELENG_7_1
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -1 lines
Fix pkg_add behaviour to preserve pathnames.

PR:		bin/93915 bin/109134
Submitted by:	Jason Heiss <heissj@yahoo-inc.com>, Constantin Stefanov<cstef@mail.ru>
Approved by:	re@ (kensmith)
MFC after:	7 days

Revision 1.42.2.1: download - view: text, markup, annotated - select for diffs
Tue Jan 10 22:17:08 2006 UTC (6 years, 1 month ago) by krion
Branches: RELENG_5
CVS tags: RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +11 -2 lines
MFC: add/extract.c:1.44 create/perform.c:1.82 create/pkg_create.1:1.70 create/pl.c:1.28
     info/show.c:1.40 lib/plist.c:1.51

  date: 2006/01/07 22:10:57;  author: krion;  state: Exp;  lines: +10 -3
  When using @cwd %%FOO%%, we must ensure to return in the original
  prefix later, but doing so with @cwd %%OLDPREFIX%% (having
  PLIST_SUB+="OLDPREFIX=${PREFIX}") hardcodes the value in the packing
  list. That's not really a problem when dealing with ports but that's
  a problem with packages since pkg_add -p option only overrides the
  first @cwd occurrence.

  This patch allow us to use @cwd without any argument. If no
  directory argument is given, it will set current working directory
  to the first prefix given by the @cwd command.

  PR:             bin/77212
  Submitted by:   flz

Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Tue Jan 10 22:15:05 2006 UTC (6 years, 1 month ago) by krion
Branches: RELENG_6
CVS tags: RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +11 -2 lines
MFC: add/extract.c:1.44 create/perform.c:1.82 create/pkg_create.1:1.70 create/pl.c:1.28
     info/show.c:1.40 lib/plist.c:1.51

  date: 2006/01/07 22:10:57;  author: krion;  state: Exp;  lines: +10 -3
  When using @cwd %%FOO%%, we must ensure to return in the original
  prefix later, but doing so with @cwd %%OLDPREFIX%% (having
  PLIST_SUB+="OLDPREFIX=${PREFIX}") hardcodes the value in the packing
  list. That's not really a problem when dealing with ports but that's
  a problem with packages since pkg_add -p option only overrides the
  first @cwd occurrence.

  This patch allow us to use @cwd without any argument. If no
  directory argument is given, it will set current working directory
  to the first prefix given by the @cwd command.

  PR:             bin/77212
  Submitted by:   flz

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Jan 7 22:10:57 2006 UTC (6 years, 1 month ago) by krion
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +11 -2 lines
When using @cwd %%FOO%%, we must ensure to return in the original
prefix later, but doing so with @cwd %%OLDPREFIX%% (having
PLIST_SUB+="OLDPREFIX=${PREFIX}") hardcodes the value in the packing
list. That's not really a problem when dealing with ports but that's
a problem with packages since pkg_add -p option only overrides the
first @cwd occurrence.

This patch allow us to use @cwd without any argument. If no
directory argument is given, it will set current working directory
to the first prefix given by the @cwd command.

PR:		bin/77212
Submitted by:	flz

Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Jun 14 15:05:42 2005 UTC (6 years, 7 months ago) by krion
Branches: MAIN
CVS tags: RELENG_6_BP, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0
Branch point for: RELENG_6
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -1 lines
Implement @noinst field which has at the moment the same meaning and
function as @comment has.  But will be valid only for files and not
for md5 sums, rcsid's and comments in the future.

Submitted by:	flz
Approved by:	re@ (scottl)

Revision 1.25.2.12: download - view: text, markup, annotated - select for diffs
Wed Aug 11 16:16:22 2004 UTC (7 years, 6 months ago) by eik
Branches: RELENG_4
CVS tags: RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11
Diff to: previous 1.25.2.11: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.2.11: +5 -5 lines
sync the pkg_install tools with -CURRENT:

- MFC of the package tools revision 20040629 changes.

- replace the perl version of pkg_version(1) by its C equivalent,
  which means that `pkg_version -c' does no longer work

- keep the perl version of pkg_update(1) until a replacement is available

- include some man pages fixes

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Jul 28 07:19:15 2004 UTC (7 years, 6 months ago) by kan
Branches: MAIN
CVS tags: RELENG_5_BP, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3
Branch point for: RELENG_5
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -2 lines
Downgrade WARNS level to more tolerable value. Attempt to fix
casts as lvalue usage whenever possible.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Jun 29 19:06:41 2004 UTC (7 years, 7 months ago) by eik
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -2 lines
- pkg_add spawns itself as argv[0]  when installing dependent packages, to
  enable the use as a port on older systems

- use absolute paths in all calls to external programs, to account for strange
  PATH settings

- use INDEX or INDEX-5 depending on FreeBSD version, to enable the use on
  FreeBSD 4.x as a port.

- conditionalize all 4.x/5.x differences on __FreeBSD_version, so that the
  pkg_install tools can be kept in sync on 4.x and 5.x

- Bump PKG_INSTALL_VERSION

Reviewed by:	portmgr (bento run)
MFC after:	4 weeks

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Jun 29 18:59:18 2004 UTC (7 years, 7 months ago) by eik
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +1 -1 lines
- pkg_info: flag -r: (show packages this packages depends on (documentation change))

- pkg_info: new flag -j (show the requirements script)

- pkg_info: fix verbose output when used on packages

- better handling of corrupt entries in /var/db/pkg

- differ between corrupt entires and packages not installed

- various small fixes

PR:		56989, 57016, 57029, 26468

Revision 1.25.2.11: download - view: text, markup, annotated - select for diffs
Tue Jan 27 09:07:10 2004 UTC (8 years ago) by des
Branches: RELENG_4
CVS tags: RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.25.2.10: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.10: +27 -11 lines
MFC: don't pretend that perfectly valid file names are "bogus".

Revision 1.25.2.10: download - view: text, markup, annotated - select for diffs
Tue Jan 27 09:06:21 2004 UTC (8 years ago) by des
Branches: RELENG_4
Diff to: previous 1.25.2.9: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.9: +0 -0 lines
The previous log message is correct in that 1.25.2.8 fixes truncation
detection, but it was not a forced commit.  It should have said "MFC:
apply consistent indentation".

Revision 1.25.2.9: download - view: text, markup, annotated - select for diffs
Tue Jan 27 09:03:41 2004 UTC (8 years ago) by des
Branches: RELENG_4
Diff to: previous 1.25.2.8: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.8: +19 -20 lines
forced commit; previous log message should have been
MFC: correct truncation detection after use of snprintf.

Revision 1.25.2.8: download - view: text, markup, annotated - select for diffs
Tue Jan 27 09:02:00 2004 UTC (8 years ago) by des
Branches: RELENG_4
Diff to: previous 1.25.2.7: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.7: +3 -3 lines
whitespace nits.

Revision 1.25.2.7: download - view: text, markup, annotated - select for diffs
Tue Jan 27 08:59:48 2004 UTC (8 years ago) by des
Branches: RELENG_4
Diff to: previous 1.25.2.6: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.6: +1 -1 lines
MFC: avoid potential buffer overflow in format_cmd().

Forgotten by:	jkh

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Jan 24 17:32:43 2004 UTC (8 years ago) by des
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +27 -11 lines
Instead of bogusly complaining about odd file names, handle them properly
by escaping all suspicious characters.

MFC after:	3 days

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Jan 24 15:35:04 2004 UTC (8 years ago) by des
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +19 -20 lines
Try to apply consistent indentation.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Dec 17 13:36:05 2003 UTC (8 years, 1 month ago) by nectar
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
Correct truncation detection after use of snprintf:  The case where
exactly one character was truncated was not detected.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Jan 6 07:39:02 2003 UTC (9 years, 1 month ago) by jkh
Branches: MAIN
CVS tags: RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2, RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +1 -1 lines
Prevent buffer overflow in format_cmd() by properly tracking maximum
buffer size.
Reported by:	Lionnel CHAPTAL <Lionnel.Chaptal@IPricot.com>
MFC after:	1 week

Revision 1.25.2.6: download - view: text, markup, annotated - select for diffs
Sat Aug 31 18:45:32 2002 UTC (9 years, 5 months ago) by obrien
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7
Diff to: previous 1.25.2.5: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.5: +3 -3 lines
MFC: rev 1.29 (snprintf can return <0)

Revision 1.25.2.5: download - view: text, markup, annotated - select for diffs
Tue Aug 20 06:35:07 2002 UTC (9 years, 5 months ago) by obrien
Branches: RELENG_4
Diff to: previous 1.25.2.4: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.4: +17 -15 lines
MFC: don't use the GCC'ism __FUNCTION__, but rather than ISO __func__'ism.

Revision 1.25.2.4: download - view: text, markup, annotated - select for diffs
Mon Aug 5 13:48:38 2002 UTC (9 years, 6 months ago) by sobomax
Branches: RELENG_4
Diff to: previous 1.25.2.3: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.3: +1 -1 lines
MFC: when extracting archive pass `-p' flag to the tar(1) (rev.1.34).

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Aug 2 17:28:02 2002 UTC (9 years, 6 months ago) by sobomax
Branches: MAIN
CVS tags: RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +0 -0 lines
(forced)

Previous delta (rev.1.34) was a subject of:

MFC after:	1 week

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Aug 2 17:26:53 2002 UTC (9 years, 6 months ago) by sobomax
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +1 -1 lines
When extracting package pass `-p' option to tar(1), so that files are
extracted with correct permissions.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat May 11 04:17:54 2002 UTC (9 years, 9 months ago) by alfred
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +10 -10 lines
replace __FUNCTION__ with standardized __func__.

Requested by: jhb

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat May 11 03:48:46 2002 UTC (9 years, 9 months ago) by alfred
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +14 -10 lines
fix build:
you may not use string concatination with __FUNCTION__, replace all occurances
of:
__FUNCTION__ ": error string"
with:
"%s: error string"

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Apr 1 09:39:05 2002 UTC (9 years, 10 months ago) by obrien
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -5 lines
Fix SCM ID's.

Revision 1.25.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 23 09:16:03 2001 UTC (10 years, 3 months ago) by sobomax
Branches: RELENG_4
CVS tags: RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6, RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5
Diff to: previous 1.25.2.2: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.2: +11 -10 lines
MFC: WANSify.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Oct 10 06:58:41 2001 UTC (10 years, 4 months ago) by sobomax
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +12 -11 lines
WARNS=2 cleanup.

Tested on:	i386, alpha
MFC after:	2 weeks

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Aug 20 15:09:33 2001 UTC (10 years, 5 months ago) by brian
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -4 lines
Handle snprintf() returning < 0 (not just -1)

MFC after:	2 weeks

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Aug 20 13:24:39 2001 UTC (10 years, 5 months ago) by brian
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -4 lines
Handle snprintf() returning -1.

MFC after:	2 weeks

Revision 1.25.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 5 10:02:50 2001 UTC (11 years ago) by sobomax
Branches: RELENG_4
CVS tags: RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4, RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3
Diff to: previous 1.25.2.1: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.2.1: +4 -1 lines
MFC: add ability to handle bzip2-compressed packages.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Jan 22 12:01:54 2001 UTC (11 years ago) by sobomax
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -1 lines
- Add ability to handle bzip2-compressed packages;
- fix cosmetics to shut-up compiler in -pedantic mode (axe several unused vars
  and provide default clause in several switch() statements).

No response from:	-ports

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 23 18:34:13 2000 UTC (11 years, 3 months ago) by jkh
Branches: RELENG_4
CVS tags: RELENG_4_2_0_RELEASE
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +11 -11 lines
MFC: more informative errx() messages, use ISO string functions.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Oct 22 09:53:24 2000 UTC (11 years, 3 months ago) by jkh
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +11 -11 lines
Cause fatal error messages to be a little more helpful to the programmer
concerning where they're taking place.

Switch from [r]index() to str[r]chr() functions, which are more ISO
compliant.

Prompted by:	Edward Welbourne <eddy@vortigen.demon.co.uk>

Revision 1.7.4.4: download - view: text, markup, annotated - select for diffs
Sun Sep 5 11:44:29 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_2_1_0
Diff to: previous 1.7.4.3: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.4.3: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.7.6.15: download - view: text, markup, annotated - select for diffs
Sun Sep 5 11:40:42 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_2_2
Diff to: previous 1.7.6.14: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.6.14: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.23.2.3: download - view: text, markup, annotated - select for diffs
Sun Aug 29 15:45:09 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE, RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
Diff to: previous 1.23.2.2: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.2.2: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Aug 28 01:17:55 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_1_1_RELEASE, RELENG_4_1_0_RELEASE, RELENG_4_0_0_RELEASE, PRE_SMPNG
Branch point for: RELENG_4
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.23.2.2: download - view: text, markup, annotated - select for diffs
Mon Aug 23 03:59:41 1999 UTC (12 years, 5 months ago) by mharo
Branches: RELENG_3
Diff to: previous 1.23.2.1: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.1: +1 -1 lines
MFC: use uname(3) to find out hardware platform, add braces and other minor cleanup

Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 9 09:31:28 1999 UTC (12 years, 8 months ago) by jkh
Branches: RELENG_3
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
MFC: fix buffer overflow.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Jun 9 09:29:53 1999 UTC (12 years, 8 months ago) by jkh
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
where_arge is allocated on stack and return address is overwritten
by buffer overflow.

Submitted by:	Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>

Revision 1.7.6.14: download - view: text, markup, annotated - select for diffs
Wed Oct 28 22:45:02 1998 UTC (13 years, 3 months ago) by jkh
Branches: RELENG_2_2
CVS tags: RELENG_2_2_8_RELEASE
Diff to: previous 1.7.6.13: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.13: +2 -2 lines
MFC: unlink on extract

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Oct 28 22:44:24 1998 UTC (13 years, 3 months ago) by jkh
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE, RELENG_3_1_0_RELEASE
Branch point for: RELENG_3
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
Unlink old contents of package when extracting new.
Submitted by:	pst

Revision 1.7.6.13: download - view: text, markup, annotated - select for diffs
Wed Oct 28 12:00:32 1998 UTC (13 years, 3 months ago) by jkh
Branches: RELENG_2_2
Diff to: previous 1.7.6.12: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.12: +2 -2 lines
MFC: assorted fixes.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Oct 12 20:01:48 1998 UTC (13 years, 4 months ago) by jkh
Branches: MAIN
CVS tags: RELENG_3_0_0_RELEASE
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
Correct a misleading comment.

Revision 1.7.6.12: download - view: text, markup, annotated - select for diffs
Fri Sep 11 07:27:17 1998 UTC (13 years, 5 months ago) by jkh
Branches: RELENG_2_2
Diff to: previous 1.7.6.11: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.11: +42 -25 lines
MFC: cleanup() fixes.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Sep 11 07:26:54 1998 UTC (13 years, 5 months ago) by jkh
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +42 -25 lines
correct usage of cleanup() everywhere - this became bogus when the warnx/errx
stuff was added and nobody seems to have noticed. :)
Noticed by:	Josh MacDonald <jmacd@paris.CS.Berkeley.EDU>

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Jul 4 14:13:01 1998 UTC (13 years, 7 months ago) by jkh
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -2 lines
MF22: check for null pointer.

Revision 1.7.6.11: download - view: text, markup, annotated - select for diffs
Sat Jul 4 14:12:19 1998 UTC (13 years, 7 months ago) by jkh
Branches: RELENG_2_2
CVS tags: RELENG_2_2_7_RELEASE
Diff to: previous 1.7.6.10: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.10: +4 -3 lines
Whoops, commit the right version.

Revision 1.7.6.10: download - view: text, markup, annotated - select for diffs
Sat Jul 4 14:10:56 1998 UTC (13 years, 7 months ago) by jkh
Branches: RELENG_2_2
Diff to: previous 1.7.6.9: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.9: +5 -2 lines
Check for null pointer bogosity in PUSHOUT().

Noticed by:	Robert Baron <rvb@sicily.odyssey.cs.cmu.edu>

Revision 1.7.6.9: download - view: text, markup, annotated - select for diffs
Mon Mar 9 12:31:07 1998 UTC (13 years, 11 months ago) by jkh
Branches: RELENG_2_2
CVS tags: RELENG_2_2_6_RELEASE
Diff to: previous 1.7.6.8: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.8: +8 -1 lines
MFC: extra sanity, eliminate dead routines.

Revision 1.7.6.8: download - view: text, markup, annotated - select for diffs
Wed Jan 21 00:15:10 1998 UTC (14 years ago) by imp
Branches: RELENG_2_2
Diff to: previous 1.7.6.7: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.7: +7 -4 lines
MFC: better quoting

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Jan 21 00:12:56 1998 UTC (14 years ago) by imp
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +7 -4 lines
Quote filenames more agressively.
Reviewed by:	jkh
Submitted by:	Hubert Feyrer

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Oct 24 08:32:06 1997 UTC (14 years, 3 months ago) by max
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +6 -2 lines
Pkg_add refused to process package whose packing list contains @exec/@unexec
before any file names.  This change makes pkg_add to process those
packages if @exec/@unexec commands don't contain any %[fFB].  Also
enable @exec/@unexec that have %D if the installation prefix is known to
pkg_add.
Reviewed by:	jkh

Revision 1.7.6.7: download - view: text, markup, annotated - select for diffs
Thu Oct 9 07:07:39 1997 UTC (14 years, 4 months ago) by charnier
Branches: RELENG_2_2
CVS tags: RELENG_2_2_5_RELEASE
Diff to: previous 1.7.6.6: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.6: +17 -11 lines
MFC: Use err(3). Cosmetics in usage string and man page.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Oct 8 07:45:35 1997 UTC (14 years, 4 months ago) by charnier
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +19 -12 lines
Use err(3). Cosmetics in usage string and man page.

Revision 1.7.6.6: download - view: text, markup, annotated - select for diffs
Tue Jul 1 06:14:08 1997 UTC (14 years, 7 months ago) by jkh
Branches: RELENG_2_2
Diff to: previous 1.7.6.5: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.5: +16 -22 lines
YAMFC

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Jul 1 06:13:35 1997 UTC (14 years, 7 months ago) by jkh
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +16 -22 lines
Change the naming conventions for preserve'd files and also document
the option in pkg_create.  Now preserved files start with a . and are
named .<filename>.<pkgname>.backup so that their purpose is more clear.

Note that just using the preserve option without proper pkg_deps
is also foolish since packages being deleted in the incorrect order with
preserve on can generate some odd results.

Revision 1.7.6.5: download - view: text, markup, annotated - select for diffs
Mon Jun 30 02:57:49 1997 UTC (14 years, 7 months ago) by jkh
Branches: RELENG_2_2
Diff to: previous 1.7.6.4: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.4: +2 -2 lines
YAMFC

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Jun 30 02:57:40 1997 UTC (14 years, 7 months ago) by jkh
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
Whoops, only attempt to back up the file if it exists. :-}

Revision 1.7.6.4: download - view: text, markup, annotated - select for diffs
Sun Jun 29 10:42:13 1997 UTC (14 years, 7 months ago) by jkh
Branches: RELENG_2_2
Diff to: previous 1.7.6.3: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.3: +45 -1 lines
YAMFC

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Jun 29 10:41:43 1997 UTC (14 years, 7 months ago) by jkh
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +45 -1 lines
Add support for @option preserve - moves existing files out of the way
before replacing them (using pkgname to make this hopefully unique).
Delete also moves them back, if they exist, resulting in a package
which can be "backed out" with reasonable safety.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat May 24 21:45:55 1997 UTC (14 years, 8 months ago) by ache
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -1 lines
When no last file specified for % command user barf(error diagnostic)
instead of segmentation fault

Revision 1.7.4.3: download - view: text, markup, annotated - select for diffs
Fri Feb 28 06:50:37 1997 UTC (14 years, 11 months ago) by jkh
Branches: RELENG_2_1_0
Diff to: previous 1.7.4.2: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.4.2: +2 -4 lines
Fix pkg_add here too (didn't roll my fix in from -current/2.2).

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Feb 25 07:22:23 1997 UTC (14 years, 11 months ago) by jkh
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +13 -16 lines
Close PR#2459

Revision 1.7.6.3: download - view: text, markup, annotated - select for diffs
Tue Feb 25 07:19:32 1997 UTC (14 years, 11 months ago) by jkh
Branches: RELENG_2_2
CVS tags: RELENG_2_2_2_RELEASE, RELENG_2_2_1_RELEASE, RELENG_2_2_0_RELEASE
Diff to: previous 1.7.6.2: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.2: +13 -16 lines
Don't be so greedy about using argument space.  The actual "secret"
threshold is somewhere below what sysconf() tells us so just divide
this number in two and be satisfied with 32K or thereabours.

Fixes PR#2459

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Feb 22 16:09:16 1997 UTC (14 years, 11 months ago) by peter
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -1 lines
Revert $FreeBSD$ to $Id$

Revision 1.7.6.2: download - view: text, markup, annotated - select for diffs
Sat Feb 15 16:36:16 1997 UTC (14 years, 11 months ago) by jkh
Branches: RELENG_2_2
Diff to: previous 1.7.6.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.1: +8 -9 lines
YAMFC

Revision 1.7.4.2: download - view: text, markup, annotated - select for diffs
Sat Feb 15 16:35:38 1997 UTC (14 years, 11 months ago) by jkh
Branches: RELENG_2_1_0
CVS tags: RELENG_2_1_7_RELEASE
Diff to: previous 1.7.4.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.4.1: +8 -9 lines
YAMFC

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Feb 15 16:34:47 1997 UTC (14 years, 11 months ago) by jkh
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +7 -8 lines
Prevent potential argument buffer overflow.

Revision 1.7.4.1: download - view: text, markup, annotated - select for diffs
Fri Feb 14 01:54:12 1997 UTC (15 years ago) by jkh
Branches: RELENG_2_1_0
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
YAMFC.

Revision 1.7.6.1: download - view: text, markup, annotated - select for diffs
Fri Feb 14 01:53:29 1997 UTC (15 years ago) by jkh
Branches: RELENG_2_2
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
YAMFC (pst change to restore @owner/@group/@mode behavior for all files).

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Feb 14 01:52:38 1997 UTC (15 years ago) by jkh
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -1 lines
Put back @owner/@group/@mode behavior I took out way back when.
Submitted-By: pst

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Jan 14 07:14:27 1997 UTC (15 years, 1 month ago) by jkh
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -1 lines
Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri May 19 22:40:54 1995 UTC (16 years, 8 months ago) by jkh
Branches: MAIN
CVS tags: RELENG_2_2_BP, RELENG_2_1_6_RELEASE, RELENG_2_1_6_1_RELEASE, RELENG_2_1_5_RELEASE, RELENG_2_1_0_RELEASE, RELENG_2_1_0_BP, RELENG_2_0_5_RELEASE, RELENG_2_0_5_BP, RELENG_2_0_5_ALPHA, RELENG_2_0_5
Branch point for: RELENG_2_2, RELENG_2_1_0
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
Only apply @mode directives to files.
Don't use the -p flag to tar; it sets the files to the wrong permissions.
Submitted by:	jmz

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Dec 6 00:51:32 1994 UTC (17 years, 2 months ago) by jkh
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +81 -4 lines
Many of John T. Kohl's patches from NetBSD.  Thanks, John!
Submitted by:	jkohl

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Sep 18 03:38:47 1993 UTC (18 years, 4 months ago) by jkh
Branches: MAIN
CVS tags: RELEASE_2_0, MOVED_NEWCVS, BP_BETA_1_1, BETA_2_0, ALPHA_2_0
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +7 -5 lines
Make sure permissions on registry location are readable by pkg_info.
Add new % sequence expansion for command execution.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Sep 6 23:26:21 1993 UTC (18 years, 5 months ago) by jkh
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -1 lines
Added option for current directory prefix in @exec (without which it's pretty
useless).

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Sep 5 04:53:48 1993 UTC (18 years, 5 months ago) by jkh
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -1 lines
Made staging area configurable rather than assuming /tmp (-t)
Made pkg_add -n less bitchy.
Made -p in pkg_add override "default" package location in pkg_create.

Added concept of "slave" and "master" modes, allowing many different things
to be done to packing lists on the fly.  This is really something for
front-end drivers to use, but also something for the more expert user.

rename()'ing files before trying to copy them, thus saving
considerable time when targets and staging area are on same filesystem.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Sep 3 23:00:33 1993 UTC (18 years, 5 months ago) by jkh
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -1 lines
Lots of misc tweaks, support for arbitrary separators in pkg_info, more
intelligent name handling in pkg_create.  Most of these files are changed
because of rcsid's being different in my cvs tree and freefall's (foo).

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Thu Aug 26 01:19:54 1993 UTC (18 years, 5 months ago) by jkh
CVS tags: pkg_install
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
The release version of my package install suite.  Please see man pages
for info.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Aug 26 01:19:53 1993 UTC (18 years, 5 months ago) by jkh
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options