summaryrefslogtreecommitdiff
path: root/usr.bin/xinstall
AgeCommit message (Collapse)Author
2016-02-01missing word; from jan staryJason McIntyre
2015-12-31Remove use of sysexits.h.Todd C. Miller
2015-07-19when using -D, do not use the mode set for the target file as the directory modeJasper Lievisse Adriaanse
ok millert@
2015-07-18kill trailing whitespaceJasper Lievisse Adriaanse
2015-07-18add -D to create the full destination path before installing the source into itJasper Lievisse Adriaanse
ok millert@
2015-04-18Use futimens() to preserve timestamps with subsec precision.Philip Guenther
Don't cast file sizes to size_t when comparing file contents for the -C option ok deraadt@
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2014-05-20Use errc/warnc to simplify code.Philip Guenther
Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
2013-11-27remove erroneous char cast to switch expression processing getopt(3);Okan Demirmen
not used in any cases. ok deraadt@, guenther@, millert@
2013-11-26unsigned char casts for ctypeTheo de Raadt
ok okan
2013-06-02Copy approach from mkdir to fix a race condition where multiple install -d'sChristian Weisgerber
trying to create overlapping paths in parallel could error out. ok millert@
2013-02-18Report unlink() errors unless ENOENT; especially useful in case of read-onlyMiod Vallat
filesystems to get a useful error message than `File exists'. ok guenther@ todd@ beck@ phessler@ mpi@ gievanni@ deraadt@
2012-09-14There's no reason to unlink the destination if we can't even openTodd C. Miller
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@
2012-04-11Move size == 0 check to the beginnig of copy(); ok espie@Todd C. Miller
2012-04-11fix install to cope with 0-sized mmap now returning EINVAL.Marc Espie
- no need to copy anything - gc redundant size check - short-cut for compare (theo's code) - gc volatile ??? - style "sure" theo
2011-11-08Pass install the -S option to avoid a window where the target isn'tPhilip Guenthe
executable (by mode or content), which can trip up builds with 'make -j' (The generic fix is in share/mk/*; some Makefiles have their own INSTALL lines) ok millert@ deraadt@
2010-09-29various EXIT STATUS fixes; from Daniel DickmanJason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2009-03-27-S (safe mode) would copy the file over, rename it to the target, thenPeter Hessler
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@
2009-03-16improve spacing in synopsis.Igor Sobrado
2007-09-05Missing colon in optsring for 'B'Jonathan Gray
From Jan Niemann <jan.niemann@gns-systems.de>
2007-08-06the ellipsis is not an optional argument; while here, sync the usageIgor Sobrado
and synopsis of commands lots of good ideas by jmc@ ok jmc@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-25"boundries" -> "boundaries" in various comments. Started by Diego Casati.Kenneth R Westerback
2007-05-16Allow stripping of files, even if the destination filenameMoritz Jodeit
starts with a dash. ok millert@ jaredy@ ray@
2006-01-10Use strlcpy(), not strncpy(); OK deraadt@Todd C. Miller
2004-10-04hierarchy is spelt hierarchy, ok djm@Jonathan Gray
2004-07-01setmode(3) returns void *, not mode_t *. ok millert@Otto Moerbeek
2004-02-10- sort optionsJason McIntyre
- simplify SYNOPSIS - note that files are copied, not moved (from couderc@)
2004-02-06- options description cleanupJason McIntyre
- 10x not 6 for mkstemp(3)
2003-11-22madvise() -- take twoMichael Shalayeff
2003-11-22Revert the last change since it's broke make release.Alexander Yurchenko
2003-11-21madvise() mmaped memory as sequentially accessed cutting user time almost in ↵Michael Shalayeff
half; millert@ ok
2003-07-02bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)Anil Madhavapeddy
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-10- section reorderJason McIntyre
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-11when doing sparse writes, we must write the last byte or the file willTed Unangst
be shortened. problem found by wcobb and naddy. ok millert@
2003-05-07fix an err() that should be errx()Todd C. Miller
2003-04-25add missing .El's for .Bl macros;Jason McIntyre
2003-01-23'conjunction' typosAnil Madhavapeddy
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-01-24Fix `necesary' typos; Alexander YurchenkoTodd C. Miller
Alas many of these were introduced by yours truly as necessary just doesn't look right to me for some reason ;-)
2001-11-19kill more registersMike Pechkin
millert@ ok
2001-08-25It is ok for the target file not to exist even if -b was specifiedHeikki Korpela
to install(1), so silently ignore rename(2) ENOENT. Closes PR 2028. ok millert@
2001-08-03o) We always closes .Bl and .Bd tags;Mike Pechkin
millert@ ok
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
2001-06-23Remove evil #ifdef __GNUC__ garbage to avoid longjmp clobbering andTodd C. Miller
use volatile instead.
2001-05-01Remove completely redundant introductory sentences in ENVIRONMENT sections.Aaron Campbell
2000-12-22Complain about, and name the missing directory when trying to installJanne Johansson
multiple files into a non-existing directory. art@ and hin@ ok.