summaryrefslogtreecommitdiff
path: root/usr.sbin/rmt
AgeCommit message (Collapse)Author
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
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.
2019-02-10"non-existant" is one of those words that don't exist, so use "non-existent"Peter Hessler
instead From Pamela Mosiejczuk, many thanks! OK phessler@ deraadt@
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
2016-08-14Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.Philip Guenther
Fix a type mismatch in ftp's "page" command and could make transfers restart at the wrong position. ok and a ull->ll tweak from natano@, ok tedu@
2015-11-04replace setbuf with setvbuf, from Frederic NowakTed Unangst
2015-10-20believe this will work with "stdio rpath wpath cpath inet" now thatTheo de Raadt
SO_RCVBUF is permitted. It may even be possible to lose the "inet" a bit later in the code. Anyone want to test?
2015-10-16ugly white spaceTheo de Raadt
2015-09-20Add a set of flags to rmt(8) to make it run in a restricted mode,Alexander Hall
designed to work with rdump(8) to remote disk. -d <directory> confines rmt to operate within a single directory. -r enforces read-only mode. -w enforces write-only mode. This is quite usable with public ssh key setup, e.g. having the following in .ssh/authorized/keys: command="/etc/rmt -rd /backups/machine.example.conf",no-agent-forwarding,... ssh-rsa AAAAB3... ok semarie@
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)
2013-12-03no need to use sgttyb.hTheo de Raadt
2011-07-23Add missing .Sm macros (from matthew@).Ingo Schwarze
While here, * use .Ic rather than .Sy for commands and fix an .Xr * remove duplicate $Id$ and multiple useless .Tn and .Xo * avoid lengthy .Bd and .Sm where they are not needed OK matthew@ jmc@
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
2007-05-31convert to new .Dd format;Jason McIntyre
2005-03-07make device MAXPATHLEN long instead of 64, fixes remote dumps withHenning Brauer
long target file names, PR4137, ok miod beck mcbride deraadt
2003-06-12- section reorderJason McIntyre
- macro fixes - kill whitespace at EOL - new sentence, new line
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-11-08Use STDIN_FILENO and STDOUT_FILENO & ANSI prototypes; Chad LoderTodd C. Miller
2002-07-04Fix off by one error found by aaron@; my fixTodd C. Miller
2002-05-29more sprintfTheo de Raadt
2002-05-06Kill/adjust r(login|exec)d? references now that those are no longer inTodd C. Miller
the tree.
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.
2000-07-20add openbsd tag, fix cpp warning about SSIZE redefinitionJason Wright
2000-03-19Remove hard sentence breaks. Add $OpenBSD$ tags where appropriate. Some otherAaron Campbell
cleanup along the way.
1999-06-05remove trailing whitespace, some Nm cleanupAaron Campbell
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonAaron Campbell
is used instead; kwesterback@home.com
1999-04-02all .Nm macros should have an argument in SYNOPSIS; also misc cleanupAaron Campbell
1999-03-11cleanupAaron Campbell
1998-06-03fix a bunch of sloppy c usesTheo de Raadt
1997-09-21$OpenBSD$Theo de Raadt
1997-07-01fix L args; mikelTheo de Raadt
1997-06-30lseek(2) takes an off_t which is quad_t so we use strtoq(3) not atoi(3).Todd C. Miller
1997-01-17Fix potential buf oflow wrt strerror and sprintf.Todd C. Miller
1996-08-10protos in scopeTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt