OpenBSD CVS

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


[BACK] Up to [local] / src / usr.bin / xinstall

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.77 / (download) - annotate - [select for diffs], Sun Dec 4 23:50:50 2022 UTC (17 months, 2 weeks ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.76: +1 -2 lines
Diff to previous 1.76 (colored)

userspace: remove vestigial '?' cases from top-level getopt(3) loops

getopt(3) returns '?' when it encounters a flag not present in the in
the optstring or if a flag is missing its option argument.  We can
handle this case with the "default" failure case with no loss of
legibility.  Hence, remove all the redundant "case '?':" lines.

Prompted by dlg@.  With help from dlg@ and millert@.

Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2

ok naddy@ millert@ dlg@

Revision 1.76 / (download) - annotate - [select for diffs], Sun Nov 28 19:28:42 2021 UTC (2 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.75: +5 -3 lines
Diff to previous 1.75 (colored)

Stop using MAXBSIZE to eliminate sys/param.h including (which injects a
ton of namespace intrusion).  Create local sizes, and refactor some code
along the way.
ok millert

Revision 1.75 / (download) - annotate - [select for diffs], Sun Oct 24 21:24:18 2021 UTC (2 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 (colored)

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant.  Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk.  They could all be 0xdeafbeef.
ok millert

Revision 1.74 / (download) - annotate - [select for diffs], Tue Apr 7 09:40:09 2020 UTC (4 years, 1 month ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.73: +2 -2 lines
Diff to previous 1.73 (colored)

install -d should error out if no directory is given
(this would have prevented a recent typo in bsd.port.mk from
going in)
as discussed with theo, merge the check that's in FreeBSD

Revision 1.73 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:05 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.72: +9 -9 lines
Diff to previous 1.72 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.72 / (download) - annotate - [select for diffs], Thu May 9 22:44:53 2019 UTC (5 years ago) by guenther
Branch: MAIN
Changes since 1.71: +1 -2 lines
Diff to previous 1.71 (colored)

This no longer uses utime(3), so it doesn't need <utime.h>

Revision 1.71 / (download) - annotate - [select for diffs], Thu Feb 14 11:51:42 2019 UTC (5 years, 3 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.70: +14 -7 lines
Diff to previous 1.70 (colored)

properly track file names and fds in case the installed file was already
there, so that mode-changing operations still work.

This fixes affected ports.


work by tedu@ and I, okay tedu@

Revision 1.70 / (download) - annotate - [select for diffs], Thu Feb 14 11:50:00 2019 UTC (5 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.69: +20 -82 lines
Diff to previous 1.69 (colored)

recommit ingo's 1.68 fix, now that we got a fix for the fringe case
described in 1.69

Revision 1.69 / (download) - annotate - [select for diffs], Sat Feb 9 22:08:25 2019 UTC (5 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.68: +83 -21 lines
Diff to previous 1.68 (colored)

Revert previous.
It appears the flag combination -S -p not only preserved the modification
time as documented, but also the file mode unless the file content changed,
so with the change in rev. 1.68, the flag -p no longer applies the given
file mode if the file content does not change.
Regression in the lang/go-boostrap build system reported by espie@.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Feb 8 12:53:44 2019 UTC (5 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.67: +21 -83 lines
Diff to previous 1.67 (colored)

Fix a race condition: do not unlink(2) a file and then open(2) it
with O_CREAT|O_EXCL; instead, always create it with a temporary name,
then rename(2) it into place atomically.  For example, the race caused
failures in parallel builds that (foolishly) install the same file twice.

This patch makes the -S option a no-op,
making install(1) always behave like -S used to.

Based on a minimally different patch
from Lauri Tirkkonen <lotheac at iki dot fi>,
and including a manual page tweak from deraadt@.

OK deraadt@; "seems the right thing to do" tedu@.

Revision 1.67 / (download) - annotate - [select for diffs], Sun Sep 16 02:44:07 2018 UTC (5 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.66: +14 -11 lines
Diff to previous 1.66 (colored)

Use uid_from_user(3) and gid_from_group(3) in utilities that
do repeated lookups.  OK tb@

Revision 1.66 / (download) - annotate - [select for diffs], Mon Aug 21 21:41:13 2017 UTC (6 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.65: +8 -3 lines
Diff to previous 1.65 (colored)

Use waitpid()/EINTR idiom for the specific pid, rather than generic wait(),
in case the parent process was started with a dangling child.  This style
ensures any potential parent:child interlock isn't disrupted due to the
"wrong" child being waited on first.  Then the other other childs can safely
zombie.
ok millert jca brynet

Revision 1.65 / (download) - annotate - [select for diffs], Fri May 13 17:51:15 2016 UTC (8 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

spelling and usage() fixes;

Revision 1.64 / (download) - annotate - [select for diffs], Thu May 12 21:43:27 2016 UTC (8 years ago) by millert
Branch: MAIN
Changes since 1.63: +9 -3 lines
Diff to previous 1.63 (colored)

Add -F option to install(1) that calls fsync(2) on the installed
file right before closing it.  OK tedu@ phessler@

Revision 1.63 / (download) - annotate - [select for diffs], Thu Dec 31 16:16:54 2015 UTC (8 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.62: +42 -43 lines
Diff to previous 1.62 (colored)

Remove use of sysexits.h.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Jul 19 18:27:26 2015 UTC (8 years, 10 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.61: +10 -5 lines
Diff to previous 1.61 (colored)

when using -D, do not use the mode set for the target file as the directory mode

ok millert@

Revision 1.61 / (download) - annotate - [select for diffs], Sat Jul 18 15:42:37 2015 UTC (8 years, 10 months ago) by jasper
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

kill trailing whitespace

Revision 1.60 / (download) - annotate - [select for diffs], Sat Jul 18 14:32:36 2015 UTC (8 years, 10 months ago) by jasper
Branch: MAIN
Changes since 1.59: +15 -4 lines
Diff to previous 1.59 (colored)

add -D to create the full destination path before installing the source into it

ok millert@

Revision 1.59 / (download) - annotate - [select for diffs], Sat Apr 18 03:15:46 2015 UTC (9 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.58: +17 -17 lines
Diff to previous 1.58 (colored)

Use futimens() to preserve timestamps with subsec precision.
Don't cast file sizes to size_t when comparing file contents for the -C option

ok deraadt@

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:15 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.57: +12 -9 lines
Diff to previous 1.57 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.57 / (download) - annotate - [select for diffs], Tue May 20 01:25:23 2014 UTC (10 years ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.56: +11 -12 lines
Diff to previous 1.56 (colored)

Use errc/warnc to simplify code.
Also, in 'ftp', always put the error message last, after the hostname/ipaddr.

ok jsing@ krw@ millert@

Revision 1.56 / (download) - annotate - [select for diffs], Wed Nov 27 13:32:02 2013 UTC (10 years, 5 months ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

remove erroneous char cast to switch expression processing getopt(3);
not used in any cases.

ok deraadt@, guenther@, millert@

Revision 1.55 / (download) - annotate - [select for diffs], Tue Nov 26 21:08:10 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

unsigned char casts for ctype
ok okan

Revision 1.54 / (download) - annotate - [select for diffs], Sun Jun 2 01:41:23 2013 UTC (10 years, 11 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.53: +12 -3 lines
Diff to previous 1.53 (colored)

Copy approach from mkdir to fix a race condition where multiple install -d's
trying to create overlapping paths in parallel could error out.  ok millert@

Revision 1.53 / (download) - annotate - [select for diffs], Mon Feb 18 22:15:11 2013 UTC (11 years, 3 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.52: +5 -3 lines
Diff to previous 1.52 (colored)

Report unlink() errors unless ENOENT; especially useful in case of read-only
filesystems to get a useful error message than `File exists'.
ok guenther@ todd@ beck@ phessler@ mpi@ gievanni@ deraadt@

Revision 1.52 / (download) - annotate - [select for diffs], Fri Sep 14 00:00:29 2012 UTC (11 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.51: +7 -8 lines
Diff to previous 1.51 (colored)

There's no reason to unlink the destination if we can't even open
the source file.  This fixes a problem with the databases/ruby-ldap
port.  Note that I changed the O_TRUNC to O_EXCL to avoid the race
between unlink/rename and creat.  OK naddy@ jeremy@

Revision 1.51 / (download) - annotate - [select for diffs], Wed Apr 11 14:19:35 2012 UTC (12 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.50: +5 -4 lines
Diff to previous 1.50 (colored)

Move size == 0 check to the beginnig of copy(); ok espie@

Revision 1.50 / (download) - annotate - [select for diffs], Wed Apr 11 09:27:42 2012 UTC (12 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.49: +10 -6 lines
Diff to previous 1.49 (colored)

fix install to cope with 0-sized mmap now returning EINVAL.
- no need to copy anything
- gc redundant size check
- short-cut for compare (theo's code)
- gc volatile ???
- style

"sure" theo

Revision 1.49 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:50 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.48: +1 -14 lines
Diff to previous 1.48 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.48 / (download) - annotate - [select for diffs], Fri Mar 27 07:31:27 2009 UTC (15 years, 1 month ago) by phessler
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.47: +43 -43 lines
Diff to previous 1.47 (colored)

-S (safe mode) would copy the file over, rename it to the target, then
do the chown/chmod dance.  This created a race where the new file would
be in place, but with the incorrect permissions.  Fix so the rename is
the last thing, instead of a middle thing.

looks ok to krw@, deraadt@
OK beck@

Revision 1.47 / (download) - annotate - [select for diffs], Wed Sep 5 08:58:34 2007 UTC (16 years, 8 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

Missing colon in optsring for 'B'
From Jan Niemann <jan.niemann@gns-systems.de>

Revision 1.46 / (download) - annotate - [select for diffs], Mon Aug 6 19:16:06 2007 UTC (16 years, 9 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

the ellipsis is not an optional argument; while here, sync the usage
and synopsis of commands

lots of good ideas by jmc@

ok jmc@

Revision 1.45 / (download) - annotate - [select for diffs], Fri May 25 20:32:29 2007 UTC (16 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored)

"boundries" -> "boundaries" in various comments. Started by Diego Casati.

Revision 1.44 / (download) - annotate - [select for diffs], Wed May 16 17:33:07 2007 UTC (17 years ago) by moritz
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

Allow stripping of files, even if the destination filename
starts with a dash.

ok millert@ jaredy@ ray@

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jan 10 00:30:08 2006 UTC (18 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.42: +6 -7 lines
Diff to previous 1.42 (colored)

Use strlcpy(), not strncpy(); OK deraadt@

Revision 1.42 / (download) - annotate - [select for diffs], Mon Oct 4 05:21:27 2004 UTC (19 years, 7 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

hierarchy is spelt hierarchy, ok djm@

Revision 1.41 / (download) - annotate - [select for diffs], Thu Jul 1 18:25:48 2004 UTC (19 years, 10 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

setmode(3) returns void *, not mode_t *.  ok millert@

Revision 1.40 / (download) - annotate - [select for diffs], Tue Feb 10 07:33:23 2004 UTC (20 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.39: +3 -5 lines
Diff to previous 1.39 (colored)

- sort options
- simplify SYNOPSIS
- note that files are copied, not moved (from couderc@)

Revision 1.39 / (download) - annotate - [select for diffs], Sat Nov 22 14:17:32 2003 UTC (20 years, 6 months ago) by mickey
Branch: MAIN
Changes since 1.38: +8 -2 lines
Diff to previous 1.38 (colored)

madvise() -- take two

Revision 1.38 / (download) - annotate - [select for diffs], Sat Nov 22 13:40:28 2003 UTC (20 years, 6 months ago) by grange
Branch: MAIN
Changes since 1.37: +3 -6 lines
Diff to previous 1.37 (colored)

Revert the last change since it's broke make release.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Nov 21 20:53:42 2003 UTC (20 years, 6 months ago) by mickey
Branch: MAIN
Changes since 1.36: +8 -5 lines
Diff to previous 1.36 (colored)

madvise() mmaped memory as sequentially accessed cutting user time almost in half; millert@ ok

Revision 1.36 / (download) - annotate - [select for diffs], Wed Jul 2 00:21:17 2003 UTC (20 years, 10 months ago) by avsm
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jun 10 22:20:54 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.34: +14 -41 lines
Diff to previous 1.34 (colored)

mostly ansi cleanup; pval ok

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:24 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.33: +3 -7 lines
Diff to previous 1.33 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.33 / (download) - annotate - [select for diffs], Sun May 11 18:18:33 2003 UTC (21 years ago) by tedu
Branch: MAIN
Changes since 1.32: +37 -2 lines
Diff to previous 1.32 (colored)

when doing sparse writes, we must write the last byte or the file will
be shortened.  problem found by wcobb and naddy.  ok millert@

Revision 1.32 / (download) - annotate - [select for diffs], Wed May 7 22:38:06 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

fix an err() that should be errx()

Revision 1.31 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:59 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.30: +11 -11 lines
Diff to previous 1.30 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jan 24 23:01:19 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

Fix `necesary' typos; Alexander Yurchenko

Alas many of these were introduced by yours truly as necessary
just doesn't look right to me for some reason ;-)

Revision 1.29 / (download) - annotate - [select for diffs], Mon Nov 19 19:02:18 2001 UTC (22 years, 6 months ago) by mpech
Branch: MAIN
Changes since 1.28: +11 -11 lines
Diff to previous 1.28 (colored)

kill more registers

millert@ ok

Revision 1.28 / (download) - annotate - [select for diffs], Sat Aug 25 19:52:05 2001 UTC (22 years, 8 months ago) by heko
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.27: +5 -3 lines
Diff to previous 1.27 (colored)

It is ok for the target file not to exist even if -b was specified
to install(1), so silently ignore rename(2) ENOENT.
Closes PR 2028.
ok millert@

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jul 9 07:04:58 2001 UTC (22 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

correct type on last arg to execl(); nordin@cse.ogi.edu

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jun 23 23:09:31 2001 UTC (22 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.25: +3 -7 lines
Diff to previous 1.25 (colored)

Remove evil #ifdef __GNUC__ garbage to avoid longjmp clobbering and
use volatile instead.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Dec 22 11:53:17 2000 UTC (23 years, 5 months ago) by jj
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Complain about, and name the missing directory when trying to install
multiple files into a non-existing directory. art@ and hin@ ok.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Oct 12 10:22:20 2000 UTC (23 years, 7 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

MAP_FAILED, not -1.
(this file actually contained two correct MAP_FAILED).

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jul 19 19:29:16 2000 UTC (23 years, 10 months ago) by mickey
Branch: MAIN
Changes since 1.22: +4 -5 lines
Diff to previous 1.22 (colored)

new strtofflags/fflagstostr

Revision 1.22 / (download) - annotate - [select for diffs], Wed Aug 4 18:24:09 1999 UTC (24 years, 9 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.21: +6 -6 lines
Diff to previous 1.21 (colored)

supply particular mapping type to the mmap(2) instead of bogus 0

Revision 1.21 / (download) - annotate - [select for diffs], Sat May 29 20:17:35 1999 UTC (24 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.20: +12 -13 lines
Diff to previous 1.20 (colored)

compare was broken for files > 8gig

Revision 1.20 / (download) - annotate - [select for diffs], Wed Mar 3 01:03:51 1999 UTC (25 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

fix uninitialized variable; this could have caused problems when installing sparse files

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jan 26 04:09:35 1999 UTC (25 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.18: +39 -13 lines
Diff to previous 1.18 (colored)

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.  hubertf@netbsd.org

Revision 1.18 / (download) - annotate - [select for diffs], Thu Dec 17 17:19:49 1998 UTC (25 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.17: +12 -7 lines
Diff to previous 1.17 (colored)

Some -Wall
Don't try to close a descriptor if it was never opened.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Dec 16 19:55:57 1998 UTC (25 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.16: +157 -10 lines
Diff to previous 1.16 (colored)

sparse file support, ripped out of pax

Revision 1.16 / (download) - annotate - [select for diffs], Sat Sep 26 09:04:43 1998 UTC (25 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

more setmode() leaks -- kill 'em all

Revision 1.15 / (download) - annotate - [select for diffs], Mon Dec 1 21:17:28 1997 UTC (26 years, 5 months ago) by chuck
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

use MAP_PRIVATE for mmap flags, not the non-standard MAP_FILE (aka 0)

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 4 05:56:26 1997 UTC (26 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

If strip(1) fails it should not be a fatal error.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Apr 17 19:13:58 1997 UTC (27 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.12: +8 -4 lines
Diff to previous 1.12 (colored)

Add support for STRIP environment variable to specify where strip(1)
lives.  Idea from NetBSD.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Mar 7 01:57:08 1997 UTC (27 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.11: +4 -5 lines
Diff to previous 1.11 (colored)

Don't error out when chflags(2) fails if the target filesystem doesn't
support file flags.  Fix from NetBSD (minus the typo).

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jan 17 07:13:54 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

r?index -> strr?chr

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jan 15 23:43:41 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

getopt(3) returns -1 when out of args, not EOF, whee!

Revision 1.9 / (download) - annotate - [select for diffs], Fri Dec 6 02:14:56 1996 UTC (27 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

warn and _exit

Revision 1.8 / (download) - annotate - [select for diffs], Sun Sep 22 20:17:54 1996 UTC (27 years, 8 months ago) by imp
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.7: +19 -19 lines
Diff to previous 1.7 (colored)

Pedanitic indentation: spaces -> tabs

Revision 1.7 / (download) - annotate - [select for diffs], Sun Aug 18 22:08:31 1996 UTC (27 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.6: +9 -6 lines
Diff to previous 1.6 (colored)

Rewind fd's in copy() since we may have already done a compare().

Revision 1.6 / (download) - annotate - [select for diffs], Wed Aug 14 16:23:55 1996 UTC (27 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.5: +11 -4 lines
Diff to previous 1.5 (colored)

Clean up target/tempfile if mmap or write fails (like non-mmap version)

Revision 1.5 / (download) - annotate - [select for diffs], Thu Aug 8 20:49:26 1996 UTC (27 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

Fixed usage sumary and order of args in man page to be consistent.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 5 01:18:42 1996 UTC (27 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.3: +278 -71 lines
Diff to previous 1.3 (colored)

Adds -C, -p, and -S flags.  Based on FreeBSD changes but heavily
modified.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 26 05:44:05 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +5 -2 lines
Diff to previous 1.2 (colored)

rcsid

Revision 1.2 / (download) - annotate - [select for diffs], Thu Dec 21 14:47:09 1995 UTC (28 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +14 -3 lines
Diff to previous 1.1 (colored)

from netbsd: some versions of strip generate a new file; thus we should
re-open the file before doing chown/chmod operations on it.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:47:00 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:47:00 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's 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.