The NetBSD Project

CVS log for src/usr.bin/xinstall/xinstall.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / xinstall

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.128: download - view: text, markup, annotated - select for diffs
Fri May 10 09:14:52 2024 UTC (8 months ago) by wiz
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +32 -16 lines
nstall(1): add support for -v

Reviewed by rillig@ and thorpej@, thanks!

Revision 1.127: download - view: text, markup, annotated - select for diffs
Thu Jul 20 16:21:23 2023 UTC (17 months, 3 weeks ago) by lukem
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +3 -2 lines
tools: binstall can use posix_spawn() instead of vfork()

Revision 1.126: download - view: text, markup, annotated - select for diffs
Fri Oct 30 20:05:00 2020 UTC (4 years, 2 months ago) by rillig
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +87 -3 lines
install(1): copy metachar table from usr.bin/make

It is not worth having a dependency on usr.bin/make just for including
this small table.  The header file usr.bin/make/make.h, which is
included for consistency with the rest of the usr.bin/make code, is
using inline functions a lot and refers to several parts of make that
are completely irrelevant to usr.bin/install.

Revision 1.125: download - view: text, markup, annotated - select for diffs
Tue May 31 06:55:02 2016 UTC (8 years, 7 months ago) by pgoyette
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +4 -3 lines
Move __MKTEMP_OK up earlier so it has an actual impact.  Reduces the
number of warnings during build.

XXX There are still some other warnings remaining to be resolved.

Fixes PR bin/48195 although we really should go back someday and fix
this correctly (by replacing all uses of mktemp(3)!)

Revision 1.124: download - view: text, markup, annotated - select for diffs
Fri Jun 19 17:20:02 2015 UTC (9 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +2 -3 lines
remove unused label

Revision 1.123: download - view: text, markup, annotated - select for diffs
Fri Jun 19 17:17:24 2015 UTC (9 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +8 -5 lines
remove useless assignment and explain why.

Revision 1.122: download - view: text, markup, annotated - select for diffs
Fri Jun 19 14:32:56 2015 UTC (9 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +3 -3 lines
restore use of whitespace needing shell.

Revision 1.121: download - view: text, markup, annotated - select for diffs
Wed Jun 17 15:52:37 2015 UTC (9 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +3 -3 lines
restore unlink file if strip fails (from Takeshi Nakayama)

Revision 1.120: download - view: text, markup, annotated - select for diffs
Wed Jun 17 15:34:08 2015 UTC (9 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +22 -5 lines
Use the bourne shell if the after command has shell metachars.

Revision 1.119: download - view: text, markup, annotated - select for diffs
Mon Jun 15 16:33:38 2015 UTC (9 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +109 -173 lines
- improve error printing
- deduplicate run functions and don't use the shell so that we handle
  filenames with spaces and metacharacters consistently.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Mon Jun 15 07:05:09 2015 UTC (9 years, 7 months ago) by martin
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +62 -5 lines
Add optional support for posix_spawn (instead of vfork) and enable it for
the in-tree build.

Revision 1.115.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:05:05 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.115: preferred, colored; next MAIN 1.116: preferred, colored
Changes since revision 1.115: +6 -4 lines
Rebase to HEAD as of a few days ago.

Revision 1.115.18.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:59:18 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.115: preferred, colored; next MAIN 1.116: preferred, colored
Changes since revision 1.115: +6 -4 lines
Rebase.

Revision 1.117: download - view: text, markup, annotated - select for diffs
Sun Jul 6 20:54:47 2014 UTC (10 years, 6 months ago) by apb
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +4 -4 lines
mtree spec files want nanoseconds, so multiply the microseconds by 1000.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Sun Jul 6 20:50:03 2014 UTC (10 years, 6 months ago) by apb
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +6 -4 lines
When printing a timestamp to a metalog, use 9 digits
for the nanoseconds part, except use only 1 digit if
the value was zero.

Revision 1.115: download - view: text, markup, annotated - select for diffs
Tue Sep 6 18:50:32 2011 UTC (13 years, 4 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Branch point for: tls-maxphys, tls-earlyentropy
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +47 -47 lines
Use static and __dead.

Revision 1.103.6.1.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 05:27:13 2010 UTC (14 years, 8 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.103.6.1: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103.6.1: +2 -2 lines
sync to netbsd-5

Revision 1.114: download - view: text, markup, annotated - select for diffs
Thu Nov 12 10:10:49 2009 UTC (15 years, 2 months ago) by tron
Branches: MAIN
CVS tags: matt-premerge-20091211, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +16 -7 lines
Don't assume that "id_t", "gid_t" and "uid_t" use the same underlying type
and use the appropriate types instead. Tested under NetBSD 5.99.22
and Darwin 10.2.0.

This should fix one of the cross-builds under FreeBSD as reported by
Rhialto on the "current-users" mailing list.

Revision 1.113: download - view: text, markup, annotated - select for diffs
Fri Oct 30 20:57:30 2009 UTC (15 years, 2 months ago) by joerg
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -3 lines
Only trust STRIP from environment if it is non-empty. Some packages set
STRIP in Makefiles and that makes install -s fail badly. OK apb@

Revision 1.112: download - view: text, markup, annotated - select for diffs
Sat Jul 25 11:45:58 2009 UTC (15 years, 5 months ago) by gson
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +5 -8 lines
When installing via a temporary file, base the name of the temporary
file on the name of the target file, not just the target directory, to
ensure uniqueness when multiple concurrent invocations of install(1)
simultaneously install files in the same directory.  Fixes bin/41512.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Mon Jun 8 21:58:44 2009 UTC (15 years, 7 months ago) by yamt
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +18 -16 lines
tabify and wrap long lines.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Mon Jun 8 14:22:01 2009 UTC (15 years, 7 months ago) by gson
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +15 -7 lines
Fix race condition causing "install -d" to randomly fail when multiple
concurrent install processes try to create the same directory.
Modelled after the code handling the "mkdir -p" case in mkdir(1).

Revision 1.103.6.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 22:10:49 2009 UTC (15 years, 7 months ago) by bouyer
Branches: netbsd-5-0
CVS tags: netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Diff to: previous 1.103: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103: +72 -36 lines
Pull up following revision(s) (requested by snj in ticket #790):
	share/mk/bsd.lib.mk: revision 1.298
	share/mk/bsd.man.mk: revision 1.100
	share/mk/bsd.hostprog.mk: revision 1.55
	distrib/sets/maketars: revision 1.66
	share/zoneinfo/Makefile: revision 1.43
	share/mk/bsd.kmodule.mk: revision 1.19
	usr.bin/xinstall/xinstall.c: revisions 1.106 - 1.108 via patch
	share/mk/bsd.prog.mk: revision 1.241
	share/dict/Makefile: revision 1.17
	share/mk/bsd.README: revision 1.249
	distrib/common/parselist.awk: revision 1.16
	share/mk/bsd.links.mk: revision 1.34
Explicitly sort entries on preparing set files from METALOG.
METALOG could have different order due to install(1) race
on parallel builds, and mtree(8) doesn't sort files.
Should fix inconsistent shared sets among builds as seen in
/pub/NetBSD-daily/netbsd-5/200904010000Z/shared/ and
/pub/NetBSD-daily/netbsd-5/200904010002Z/shared/ dirs.
Okay'ed by snj@.
Changes for installing with a metalog:
* When installing hard links and using a metalog, if -o, -g, -m, or -f
  args were explicitly specified on the command line, then believe them,
  but do not implicitly believe uname/gname/mode/flags from the file
  system.
* Output fields in the same order used by mtree.
Fix -Wshadow -Wcast-qual issues
Re-calculate size and digestresult after stripping, to ensure that
correct values appear in the metalog.
Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links.  They have no effect except when using a
metalog, in which case the information is added to the metalog.  In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.
Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.
Reviewed by perry and joerg.  This should fix PR 24457 and PR 41155.

Revision 1.103.4.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 22:10:13 2009 UTC (15 years, 7 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.103: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103: +72 -36 lines
Pull up following revision(s) (requested by snj in ticket #790):
	share/mk/bsd.lib.mk: revision 1.298
	share/mk/bsd.man.mk: revision 1.100
	share/mk/bsd.hostprog.mk: revision 1.55
	distrib/sets/maketars: revision 1.66
	share/zoneinfo/Makefile: revision 1.43
	share/mk/bsd.kmodule.mk: revision 1.19
	usr.bin/xinstall/xinstall.c: revisions 1.106 - 1.108 via patch
	share/mk/bsd.prog.mk: revision 1.241
	share/dict/Makefile: revision 1.17
	share/mk/bsd.README: revision 1.249
	distrib/common/parselist.awk: revision 1.16
	share/mk/bsd.links.mk: revision 1.34
Explicitly sort entries on preparing set files from METALOG.
METALOG could have different order due to install(1) race
on parallel builds, and mtree(8) doesn't sort files.
Should fix inconsistent shared sets among builds as seen in
/pub/NetBSD-daily/netbsd-5/200904010000Z/shared/ and
/pub/NetBSD-daily/netbsd-5/200904010002Z/shared/ dirs.
Okay'ed by snj@.
Changes for installing with a metalog:
* When installing hard links and using a metalog, if -o, -g, -m, or -f
  args were explicitly specified on the command line, then believe them,
  but do not implicitly believe uname/gname/mode/flags from the file
  system.
* Output fields in the same order used by mtree.
Fix -Wshadow -Wcast-qual issues
Re-calculate size and digestresult after stripping, to ensure that
correct values appear in the metalog.
Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links.  They have no effect except when using a
metalog, in which case the information is added to the metalog.  In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.
Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.
Reviewed by perry and joerg.  This should fix PR 24457 and PR 41155.

Revision 1.105.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:20:12 2009 UTC (15 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.105: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105: +128 -37 lines
Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.109: download - view: text, markup, annotated - select for diffs
Fri May 1 20:16:23 2009 UTC (15 years, 8 months ago) by apb
Branches: MAIN
CVS tags: jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +57 -2 lines
Add support for writing sha256, sha384, and sha512 digests to
a metalog.  mtree(8) has supported these for a long time.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Fri Apr 17 06:09:08 2009 UTC (15 years, 9 months ago) by apb
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +28 -12 lines
Re-calculate size and digestresult after stripping, to ensure that
correct values appear in the metalog.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Tue Apr 14 08:54:59 2009 UTC (15 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +7 -7 lines
Fix -Wshadow -Wcast-qual issues

Revision 1.106: download - view: text, markup, annotated - select for diffs
Tue Apr 7 22:07:54 2009 UTC (15 years, 9 months ago) by apb
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +47 -27 lines
Changes for installing with a metalog:
* When installing hard links and using a metalog, if -o, -g, -m, or -f
  args were explicitly specified on the command line, then believe them,
  but do not implicitly believe uname/gname/mode/flags from the file
  system.
* Add a size= field (only for plain files).
* Output fields in the same order used by mtree.

Revision 1.105: download - view: text, markup, annotated - select for diffs
Sun Dec 28 18:38:27 2008 UTC (16 years ago) by christos
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +2 -5 lines
back out previous, and do it the better way.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Sun Dec 28 18:34:58 2008 UTC (16 years ago) by christos
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +8 -3 lines
In the "tool" case, pretend we don't have futimes because there is no visible
prototype for futimes without _NETBSD_SOURCE being defined. When we will do
a __RENAME() in futimes this will not work. XXX: This is a hack, better ideas
welcome.

Revision 1.102.12.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:29:27 2008 UTC (16 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.102: preferred, colored; next MAIN 1.103: preferred, colored
Changes since revision 1.102: +4 -4 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Mon Jul 21 14:19:28 2008 UTC (16 years, 5 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2
Branch point for: netbsd-5-0, netbsd-5
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +4 -4 lines
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.

Revision 1.100.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 07:05:34 2007 UTC (17 years, 4 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100: +37 -24 lines
Sync w/ NetBSD-4-RC_1

Revision 1.100.2.1: download - view: text, markup, annotated - select for diffs
Thu Aug 23 11:21:43 2007 UTC (17 years, 4 months ago) by liamjfoy
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0
Diff to: previous 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100: +37 -24 lines
Pull up following revision(s) (requested by joerg in ticket #823):
	usr.bin/xinstall/xinstall.c: revision 1.102
	tools/binstall/Makefile: revision 1.6
	tools/binstall/Makefile: revision 1.7
	share/mk/bsd.own.mk: revision 1.496
- When compiling nbinstall for the tool chain, use the target strip
  and not /usr/bin/strip. This makes nbinstall usable for
  cross-compiling in pkgsrc.
- Fix a typo in a comment.
- Fix strip() in the context of (v)fork:
  - Build the argument string first using asprintf (simpler) and
    avoid leaking memory from the child in the parent.
  - Don't use warn in the child, as stdio should be avoided.
OK christos@, tested on Solaris by dmcmahill@.
Rename nbinstall to ${MACHINE_GNU_PLATFORM}-install as it calls the
target strip. Don't pass down strip as it is not needed any longer.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Thu Jun 28 19:05:56 2007 UTC (17 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: wrstuden-revivesa
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +37 -24 lines
- When compiling nbinstall for the tool chain, use the target strip
  and not /usr/bin/strip. This makes nbinstall usable for
  cross-compiling in pkgsrc.
- Fix a typo in a comment.
- Fix strip() in the context of (v)fork:
  - Build the argument string first using asprintf (simpler) and
    avoid leaking memory from the child in the parent.
  - Don't use warn in the child, as stdio should be avoided.

OK christos@, tested on Solaris by dmcmahill@.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu Dec 14 20:09:36 2006 UTC (18 years, 1 month ago) by he
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +3 -3 lines
Complete the move of string_to_flags() and flags_to_string() from the
bin/ls sources to libutil:
 o Bump libutil minor version number
 o Fix uses to include <util.h> to pick up the function definitions
 o Fix most uses of flags_to_string() to release the now-malloc()ed result

Revision 1.100: download - view: text, markup, annotated - select for diffs
Mon Oct 30 20:22:54 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
CVS tags: netbsd-4-base
Branch point for: wrstuden-fixsa, netbsd-4
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +3 -3 lines
kill crypto/rmd160.h and crypto/sha2.h, and instead make symlinks to
/usr/include from /usr/include/sys. This makes all the one way hash
header handling identical.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Fri Oct 6 20:22:59 2006 UTC (18 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +7 -4 lines
When trying to copy many files into another file, provide a useful and
more specific error message instead of the usage().

Revision 1.98: download - view: text, markup, annotated - select for diffs
Mon Sep 25 16:05:44 2006 UTC (18 years, 3 months ago) by daniel
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +4 -2 lines
PR/30698: install(1) stripping flags in METALOG [patch] (Jukka Salmi)

Apply patch, thanks!

Revision 1.97: download - view: text, markup, annotated - select for diffs
Mon Sep 25 13:21:19 2006 UTC (18 years, 3 months ago) by daniel
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +5 -2 lines
PR/32589: install -d ignores existing non-directories (joerg@netbsd.org)

Raise an error if an argument to 'install -d' exists as a non-directory,
as suggested by joerg@ (and acked by some developers on #netbsd-code).
With this change behavior is equal in this respect to FreeBSD and
DragonFly.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Mon Sep 11 22:24:09 2006 UTC (18 years, 4 months ago) by dbj
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +7 -5 lines
fixes for installing into a case insensitive $DESTDIR
when files may have hard links to a a name that only differs by case
  - change install to unconditionally remove its temporary file
    when installing hard links with -r.  This avoids problems when
    built with posix rename(2) semantics and reinstalling an existing
    hard link.
  - rework hard link targets in bsd.man.mk and bsd.links.mk
    to use makefile constructs instead of shell constructs
  - always reinstall hard links that may have case conflicts, even
    when MKUPDATE=yes, this ensures that they get added to METALOG
  - remove man pages which were hard linked to themselves in libform
  - remove improper hard link command for existing man page in libkrb5
  - fix libl's makefile to include bsd.lib.mk at end
  - remove shell quoting in link target for test's [.1 man page

Revision 1.95: download - view: text, markup, annotated - select for diffs
Thu May 11 06:09:44 2006 UTC (18 years, 8 months ago) by mrg
Branches: MAIN
CVS tags: chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +4 -4 lines
char -> u_char for a buffer passed to MD5*().

Revision 1.94: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:36:05 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -2 lines
Coverity CID 95: Fix resource leak.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Sat Oct 1 20:25:45 2005 UTC (19 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +3 -3 lines
fix setmode error handling.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Sun Sep 25 14:35:54 2005 UTC (19 years, 3 months ago) by elad
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -3 lines
Use crypto/rmd160.h.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Sat Jun 11 22:59:05 2005 UTC (19 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +5 -4 lines
mktemp() uses are ok here, so no more warnings.

Revision 1.87.2.3: download - view: text, markup, annotated - select for diffs
Wed May 11 17:57:49 2005 UTC (19 years, 8 months ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Diff to: previous 1.87.2.2: preferred, colored; branchpoint 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87.2.2: +7 -4 lines
Pull up revision 1.90 (requested by lukem in ticket #287):
When creating a relative symlink (-lr), use the originally provided `to_name'
to create and metalog, rather than using the realpath(3) modified version.
Fixes a problem with -lr when -ddestdir contains a symlink.
Add some XXX comments reminding us that the `from_name' in a symlink may
point outside of destdir in the metalog, even though our build process
doesn't trigger this.

Revision 1.87.2.2: download - view: text, markup, annotated - select for diffs
Tue May 10 12:43:53 2005 UTC (19 years, 8 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.87.2.1: preferred, colored; branchpoint 1.87: preferred, colored
Changes since revision 1.87.2.1: +6 -4 lines
Pull up revision 1.89 (requested by lukem in ticket #271):
strvis(3) encode the link=... argument in the metalog.
(mtree(8) already requires this.)

Revision 1.87.2.1: download - view: text, markup, annotated - select for diffs
Tue May 10 12:42:02 2005 UTC (19 years, 8 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +7 -5 lines
Pull up revision 1.88 (requested by lukem in ticket #270):
metadata_log(): remove leading  -D destdir  before strsvis(3) encoding
the path, not after.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Tue May 10 01:24:42 2005 UTC (19 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +7 -4 lines
When creating a relative symlink (-lr), use the originally provided `to_name'
to create and metalog, rather than using the realpath(3) modified version.
Fixes a problem with -lr when -ddestdir contains a symlink.

Add some XXX comments reminding us that the `from_name' in a symlink may
point outside of destdir in the metalog, even though our build process
doesn't trigger this.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Sun May 8 23:05:02 2005 UTC (19 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +6 -4 lines
strvis(3) encode the link=... argument in the metalog.
(mtree(8) already requires this.)

Revision 1.88: download - view: text, markup, annotated - select for diffs
Sun May 8 10:23:13 2005 UTC (19 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +7 -5 lines
metadata_log(): remove leading  -D destdir  before strsvis(3) encoding
the path, not after.

Revision 1.71.2.1: download - view: text, markup, annotated - select for diffs
Fri Jul 23 14:33:15 2004 UTC (20 years, 5 months ago) by tron
Branches: netbsd-1-6
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +3 -3 lines
Apply patch (request by dbj in ticket 1723):
Fix building the netbsd-1-6 branch under Darwin/MacOS.

Revision 1.86.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 22 07:24:55 2004 UTC (20 years, 6 months ago) by tron
Branches: netbsd-2-0
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +3 -3 lines
Pull up revision 1.87 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944

Revision 1.87: download - view: text, markup, annotated - select for diffs
Sun Jun 20 22:20:16 2004 UTC (20 years, 6 months ago) by jmc
Branches: MAIN
CVS tags: netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -3 lines
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944

Revision 1.86: download - view: text, markup, annotated - select for diffs
Mon Feb 2 23:25:36 2004 UTC (20 years, 11 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -2 lines
Fix bug when calculating digest when copying from dev/null.
Problem noted by Matthias Scheler and Tomasz Luchowski.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Fri Jan 30 01:38:25 2004 UTC (20 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +18 -3 lines
Auso support -h hash for hard-linked files.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Thu Jan 29 07:58:33 2004 UTC (20 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +110 -20 lines
Implement  -h {none,md5,rmd160,sha1}  to determine the appropriate hash
(digest) when copying a file to store in the -M METALOG.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Mon Dec 29 02:01:27 2003 UTC (21 years ago) by simonb
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +4 -8 lines
Make "copy the file" (the -c option) the default behaviour.  The -c option
is kept for backwards compatibility but now has no effect.

Patch from Bruce Nourish in PR bin/23874, with some minor changes by me.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Tue Dec 16 20:51:57 2003 UTC (21 years, 1 month ago) by heas
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -3 lines
Initialize uid and gid so that the owner/group is not inadvertantly changed
when only one of -g or -o are given by the super-user and -g works for others.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Fri Nov 21 21:20:25 2003 UTC (21 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -2 lines
munmap() so that we don't accumulate memory on multiple files.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Mon Oct 27 00:12:44 2003 UTC (21 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +10 -10 lines
Overhaul how `build.sh tools' are used:

    *	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).

Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Aug 7 11:17:50 2003 UTC (21 years, 5 months ago) by agc
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -7 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sat Jul 12 14:30:53 2003 UTC (21 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +4 -4 lines
strlcat

Revision 1.77: download - view: text, markup, annotated - select for diffs
Thu Mar 13 18:23:02 2003 UTC (21 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -3 lines
Don't do the madvise(2) call if __APPLE__.  Even though madvise(2)
exists on Mac OS X, and we pass valid arguments, the call always
results in EINVAL, and the warning annoys me.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Mon Dec 23 06:24:15 2002 UTC (22 years ago) by lukem
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +5 -4 lines
DTRT with -D destdir when the target == destdir

Revision 1.75: download - view: text, markup, annotated - select for diffs
Sun Dec 22 10:15:17 2002 UTC (22 years ago) by lukem
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +27 -13 lines
Implement '-D destdir'; if '-M metalog' is being used, remove a
leading `destdir' from the file name logged to the metalog.
The -D option has no effect on where the actual files are installed.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Dec 19 08:30:39 2002 UTC (22 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +15 -16 lines
Add '-N dbdir', to specify that user & group lookups are to be done from
dbdir/master.passwd and dbdir/group, using simple text file parsing
routines from ../../usr.sbin/mtree/getid.c.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Jun 9 04:16:39 2002 UTC (22 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +12 -4 lines
Convert from flock() to the more portable fcntl().
As discussed with Mason Loring Bliss <mason@netbsd.org>

Revision 1.72: download - view: text, markup, annotated - select for diffs
Sat Jun 8 15:02:27 2002 UTC (22 years, 7 months ago) by yamt
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -3 lines
make an auto const variable static.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed Apr 10 06:12:04 2002 UTC (22 years, 9 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +13 -10 lines
doh.  don't try and update from_sb and tv  if dolink is set

Revision 1.70: download - view: text, markup, annotated - select for diffs
Wed Apr 10 06:02:52 2002 UTC (22 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +14 -13 lines
always stat into &from_sb and setup tv[]; stops weird problem noticed
by Simon Burge when installing from /dev/null resulted in weird dates.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Tue Mar 19 14:17:04 2002 UTC (22 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +101 -14 lines
- Add "-a afterinstallcommand", which runs "sh -c afterinstallcmd target"
  after target has been installed and possibly stripped with -s, but
  before ownership, permissions or timestamps are set, and before
  renaming (with -r) occurs.  Per discussion with simonb.
- When metalogging hardlinks, log the mode of the existing target
  (rather than the default 0755), and ignore owner/group/fflags.
- Improve man page description of various options to include argument name.
- Clean up usage() to use getprogname(), etc.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu Feb 28 00:22:51 2002 UTC (22 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +9 -5 lines
When metalogging a hard link, don't log it as "type=hlink".
Instead, stat the type, and only log an entry if it's a "type=file".
We could log hard links to symlinks, but they're not portable and
their use has been deprecated in our source tree.
Hard links to other types aren't as useful at this stage; if the need
arises we can change this to log the appropriate information then.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Thu Jan 31 22:43:59 2002 UTC (22 years, 11 months ago) by tv
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +6 -16 lines
Roll in fixes to permit cross-compiling from non-NetBSD hosts.  This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Jan 28 19:44:03 2002 UTC (22 years, 11 months ago) by tv
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +20 -20 lines
Identify where errors come from, rather than just doing err[x]("%s", foo).

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Jan 21 20:00:02 2002 UTC (22 years, 11 months ago) by tv
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +44 -8 lines
Add non-NetBSD host hooks.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Dec 10 08:54:38 2001 UTC (23 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3 lines
ADD MISSING SLASH.
Broken insall had been made a temporary file at the parent directory
(may cause Cross-device link(EXDEV)).

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sat Nov 24 21:58:42 2001 UTC (23 years, 1 month ago) by perry
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
fix an accidental use of dirname instead of xdirname

Revision 1.62: download - view: text, markup, annotated - select for diffs
Fri Nov 23 18:14:51 2001 UTC (23 years, 1 month ago) by perry
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +4 -2 lines
add comments noting the mktemp usage is safe.

long run I think we have to abandon using the linker for warnings and
beef up lint instead.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Nov 23 16:14:51 2001 UTC (23 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +146 -52 lines
Overhaul link creation - splitting out hard and symbolic link handling
to separate functions and handling -r (renaming) correctly for both
cases.
Also fix most lint(1) warnings.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Nov 22 23:27:38 2001 UTC (23 years, 1 month ago) by dillo
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +6 -5 lines
Make metadata logging of set-id bits work for unprived installs.
These bits were cleared from mode before a call to fchmod and later
that changed value was logged.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon Nov 19 02:51:00 2001 UTC (23 years, 2 months ago) by perry
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +11 -37 lines
simplify metadata logging, and add metadata logging for hard links.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Mon Nov 12 19:08:31 2001 UTC (23 years, 2 months ago) by tv
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +5 -3 lines
Actually do a chmod if -U, but only try chmod'ing the lower 0777 bits.
This is needed to make things executable, where appropriate.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Oct 29 02:57:21 2001 UTC (23 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +43 -11 lines
change metadata_log() to support logging symlink info as well
(including target name).  pointed out by perry.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Oct 29 00:25:44 2001 UTC (23 years, 2 months ago) by perry
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +8 -6 lines
Do not attempt to stat the source if we are dealing with a link. We
aren't going to do anything with the information anyway and there is
error checking later anyway.
We can now succeed in creating symlinks to locations that don't exist,
just as ln -s will let us do, and we can use install instead of ln -s
in several Makefiles. The code was written with the obvious intent to
let you do this but apparently it was never tested.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Oct 28 23:43:19 2001 UTC (23 years, 2 months ago) by perry
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -4 lines
1) Remove a comment that bore no resemblance to reality. It was worse
   than having no comment at all by far.
2) fix an instance in which we checked if "from" wasn't a regular file
   and then bitched about "to".

Revision 1.54: download - view: text, markup, annotated - select for diffs
Thu Oct 25 15:37:06 2001 UTC (23 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +14 -8 lines
Add '-T tags', to specify mtree(8) tags to be written out to the '-M metalog'
for the current entry.  Concept suggested by Perry Metzger.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Oct 25 15:06:12 2001 UTC (23 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +24 -24 lines
minor knf

Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri Oct 19 14:26:19 2001 UTC (23 years, 3 months ago) by tv
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +20 -17 lines
If unprivileged, we may be running on a system that doesn't have the proper
/etc/passwd and /etc/group (as well as concept of file flags) as the target.

Rather than look up users, groups, or flags with -U, do what the manpage
indicates:  don't even try changing them.  If -M is specified, use the
strings that are passed in via options with "gname", "uname", and "flags"
in the resultant mtree file, rather than retranslating them back from numbers.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Thu Oct 11 04:27:30 2001 UTC (23 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -3 lines
oops, got chflags() error checking around the wrong way

Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Oct 11 02:06:32 2001 UTC (23 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +153 -59 lines
- Implement "-M log", which appends the metadata associated with the
  installed file or directory to `log'. This is primarily designed
  to be used in conjunction with -U, but that's not mandatory.
  Provide metadata_log() to do the hard work. The log file is opened
  for append at the start, and flock(LOCK_EX) is used to prevent
  interleaved output (from multiple concurrent install(8) operations).
- Improve parsing of owner and groups (e.g., strtoul() instead of atoi()),
  and don't rely upon uid==-1 to indicate "no owner"; use a flag instead.
- Make fileflags a global variable; uid, gid, and mode are, so lets be
  consistent...
- Improve -U (unpriv); work on file flags as well, and only try to change
  the file flags after the temporary file is renamed (since certain flags
  will prevent the rename from working).

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Sep 15 16:45:23 2001 UTC (23 years, 4 months ago) by simonb
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +8 -4 lines
Throw out home-grown strdup().
Error check malloc/strdup return values.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Sep 15 14:55:38 2001 UTC (23 years, 4 months ago) by simonb
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +18 -31 lines
ANSIfy.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Aug 24 10:24:48 2001 UTC (23 years, 4 months ago) by wiz
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3 lines
heirarchy -> hierarchy

Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Jun 15 08:25:11 2001 UTC (23 years, 7 months ago) by kleink
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -4 lines
Add the -r flag to usage output.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon May 28 03:37:22 2001 UTC (23 years, 7 months ago) by chs
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +13 -11 lines
fall back to read() if mmap() returns an error.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Mar 21 23:16:33 2001 UTC (23 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -2 lines
slight portability improvement: use madvise(... MADV_SEQUENTIAL ...)
iff MADV_SEQUENTIAL is actually defined.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Feb 21 00:06:22 2001 UTC (23 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -2 lines
call setprogname(argv[0]) at start of main()

Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Oct 10 14:30:41 2000 UTC (24 years, 3 months ago) by enami
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -3 lines
- The type of return value of setmode is a void * and getmode takes it,
  rather than mode_t *.
- Free the storage allocated by setmode unless it is obvious that program
  exits immediately.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Jul 27 03:57:50 2000 UTC (24 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +25 -21 lines
If unprivileged, don't even look up user or group name.  (always set uid and
gid to -1.)  Don't bother checking 'unpriv' when it's redundant with the
uid/gid == -1 check.  (Doing the uid/gid handling consistently also fixes
the directory-creation code, which didn't check unpriv and did chmod/chown
anyway.)  One minor spaces/tabs cleanup at one of the uid/gid checks.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Jul 27 03:45:02 2000 UTC (24 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3 lines
invoke stripprog using execlp.  (this mirrors the behaviour that would
be had from using the shell to invoke strip, and removes an unnecessary
limitation that the STRIP environment variable be an absolute path.)

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Jan 15 01:10:12 2000 UTC (25 years ago) by christos
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -3 lines
don't bitch if madvise returns EOPNOTSUPP

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Aug 1 05:02:06 1999 UTC (25 years, 5 months ago) by sommerfeld
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +23 -20 lines
Add `-U' flag (for "unprivileged").  Currently just skips the
chown/chgrp stages which would otherwise blow out if not running as
root.  A future version may log the owner/group to allow correction by
a later privileged cleanup pass.

Just warn about madvise failure; it's not something to blow up about.

Document new option, and clean up option grouping for -d (install
directory) option.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Jul 6 14:45:31 1999 UTC (25 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +11 -2 lines
pacify gcc-2.8 uninitialized variable warnings, and only use timespecs in
struct stat on BSD4_4 systems.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat Jun 26 00:41:39 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +21 -8 lines
If we choose the mmap() method of copying the file, advise the VM
system that we'll be doing sequential access of the file.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Mar 29 17:01:49 1999 UTC (25 years, 9 months ago) by hubertf
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +18 -3 lines
Check if given suffix really generates different suffixes - catch e.g. ".%"
Submitted in PR 7278 by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Mar 24 15:13:46 1999 UTC (25 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -3 lines
Don't unlink the file first if we are renaming. We want to be as atomic as
possible, and this not only introduces time where the file is not valid,
but also breaks in the ld.so install where strip does not find ld.so, since
it has not been renamed yet.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Feb 4 11:56:48 1999 UTC (25 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +45 -12 lines
PR/2936: Brian C. Grayson: Avoid truncating precious files when installing
and the filesystem is full. Added -r flag to install, which installs on
a temporary file and then renames to the final destination.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Jan 26 01:34:25 1999 UTC (25 years, 11 months ago) by hubertf
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +40 -12 lines
enable numbered backups via -B.old%02d

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Jan 25 01:42:57 1999 UTC (25 years, 11 months ago) by hubertf
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +26 -8 lines
Add a -b(ackup) flag to move any existing file(s) aside by renaming
them to file.old instead of simply deleting them. A different backup
suffix may be chosen with the -B option's argument.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Dec 20 15:07:46 1998 UTC (26 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -4 lines
char -> unsigned char

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Oct 10 07:38:23 1998 UTC (26 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
create a "stat_flags.h" to go with stat_flags.c

Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Oct 8 02:12:51 1998 UTC (26 years, 3 months ago) by wsanchez
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +52 -27 lines
Add new option -S, which is like -s, but takes a string of options to pass to strip,
  rather than "-s". For example:
	install -S "-i -s symbolfile" foo /usr/bin/foo
  Invokes:
	/bin/sh -c "strip -i -s /usr/bin/foo"
  This is needed, because we need different strip options for dynamic libraries and
  Mach-O bundles than for executables; our strip supports more directed stripping.
  /bin/sh is used in this case, to parse the arguments.

Don't bother mmap()ing files of zero length. Was a workaround for a bug in our mmap(),
  which didn't get along with such files, but makes sense anyway.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Oct 1 18:23:52 1998 UTC (26 years, 3 months ago) by erh
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -5 lines
Add -p flag to usage().

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Sep 28 08:16:15 1998 UTC (26 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +33 -18 lines
add -p flag, similar to cp(1)

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Feb 20 09:27:21 1998 UTC (26 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
Fill in missing (default) mmap(2) flags.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Dec 1 21:11:39 1997 UTC (27 years, 1 month ago) by chuck
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
use MAP_PRIVATE for mmap flags, not the non-standard MAP_FILE (aka 0)

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Nov 30 22:20:00 1997 UTC (27 years, 1 month ago) by tv
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -4 lines
accept -c silently with -d; fixes GNU autoconf (among others) that assume
you can use -c with -d
...but this is NOT a reason for those of you making install procedures
to think this behaviour is `correct'... <grin>

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 27 23:20:38 1997 UTC (27 years, 2 months ago) by thorpej
Branches: netbsd-1-3
CVS tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +5 -4 lines
Pull up from trunk:

In strip():
- Use the saved errno to print the error message if the vfork() fails.
- In the child, if the execl() fails, use warn()/_exit(), not err(),
  as the latter is not safe in the presence of a Real vfork().

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Oct 27 23:16:34 1997 UTC (27 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +5 -4 lines
In strip():
- Use the saved errno to print the error message if the vfork() fails.
- In the child, if the execl() fails, use warn()/_exit(), not err(),
  as the latter is not safe in the presence of a Real vfork().

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Oct 20 03:32:27 1997 UTC (27 years, 3 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -4 lines
getopt returns -1 not EOF, fix .Nm

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Oct 19 14:42:38 1997 UTC (27 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +10 -8 lines
WARNSify;  deprecate register;  clean up .Nm

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Apr 19 03:50:29 1997 UTC (27 years, 9 months ago) by mikel
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
use proper pathname when unable to exec strip

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Apr 17 07:56:58 1997 UTC (27 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +7 -3 lines
Allow the environment variable $STRIP to override _PATH_STRIP for
`-s', helping out cross-compiling.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Mar 16 19:46:02 1997 UTC (27 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
Fix pasto in error message.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Mar 16 19:43:20 1997 UTC (27 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +119 -7 lines
Add support for installing hard and symbolic links via the [-l harms] flag.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Mar 12 18:13:18 1997 UTC (27 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -6 lines
Remove kluge for GCC bug on m68k.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Mar 10 17:29:05 1997 UTC (27 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -11 lines
Use a slightly more sane way to cheat around XXX_BROKEN_GCC on the m68k.
The old way was more complex than necessary, and buggy, as pointed out
by Bruce Albrecht <bruce@zuhause.mn.org> in PR #3309.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Mar 10 14:14:37 1997 UTC (27 years, 10 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
warnx --> warn, warnx wasn't needed anymore after previous change
(pointed out by enami tsugutomo)

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Mar 6 16:09:45 1997 UTC (27 years, 10 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
Correct error in previous.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Mar 5 23:48:47 1997 UTC (27 years, 10 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -5 lines
Don't bail out when chflags() fails with EOPNOTSUPP. Fixes PR #3288

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Dec 9 20:03:20 1996 UTC (28 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +12 -2 lines
XXX Kludge to make this compile with large MAXBSIZE until the
XXX GCC bug it tickles is fixed.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Dec 20 10:25:17 1995 UTC (29 years, 1 month ago) by jonathan
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +14 -3 lines
Change xinstall to work with strip from GNU binutils, for mips and alpha ports.

When using a strip that uses a temp file and moves that to the target,
unlinking the original, install would set the modes of the
original (now unlinked) file, not the new stripped one.
Fixed by re-opening the fd used for fchown/chmod after stripping.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Aug 10 04:20:57 1995 UTC (29 years, 5 months ago) by ghudson
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +12 -10 lines
Accept numeric uid or gid for -o and -g flags, for consistency with
chown and chgrp.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Dec 20 01:24:38 1994 UTC (30 years, 1 month ago) by jtc
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -7 lines
added prototype for install_dir()

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Dec 18 22:05:40 1994 UTC (30 years, 1 month ago) by jtc
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -2 lines
added exit(1) to usage()

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Nov 14 04:57:19 1994 UTC (30 years, 2 months ago) by jtc
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +182 -137 lines
Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
Changed to use err(),errx(),warn(),warnx().

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sat Nov 12 08:52:09 1994 UTC (30 years, 2 months ago) by jtc
Branches: WFJ-920714, CSRG
CVS tags: lite-2, lite-1
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +198 -127 lines
imported from 4.4lite

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Oct 2 21:32:31 1994 UTC (30 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -6 lines
be a bit more careful abotu what we can stat()/mkdir()

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Aug 1 18:00:57 1993 UTC (31 years, 5 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -1 lines
Add RCS identifiers.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Jun 11 18:30:48 1993 UTC (31 years, 7 months ago) by jtc
Branches: MAIN
CVS tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +62 -8 lines
Added -d option to install

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 10 months ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 10 months ago) by cgd
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

CVSweb <webmaster@jp.NetBSD.org>