summaryrefslogtreecommitdiff
path: root/usr.sbin/amd
AgeCommit message (Collapse)Author
2022-12-28spelling fixes; from paul tagliamonteJason McIntyre
any parts of his diff not taken are noted on tech
2022-07-30we mention interim BSD releases so change some 4.4BSD use to 4.3BSD-RenoJonathan Gray
ok jmc@ schwarze@
2022-03-31man pages: add missing commas between subordinate and main clausesChristian Weisgerber
jmc@ dislikes a comma before "then" in a conditional, so leave those untouched. ok jmc@
2021-11-15No need to declare optind, optarg or opterr; unistd.h does this for us.Todd C. Miller
From Jan Stary. OK deraadt@
2021-10-21Avoid sys/param.h, or annotate reasons for including where required.Theo de Raadt
This includes using HOST_NAME_MAX and PATH_MAX in snaps for around 3 weeks, noone noticed a change in behaviour.
2021-03-08Add some references, most of these were removed when we stopped buildingJonathan Gray
and installing USD/SMM/PSD docs. jmc@ agrees with the direction, ok millert@ on an earlier diff
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-06-02In manpages, don't escape apostrophes as \'; it's rarely what you want.Anthony J. Bentley
Most of these are correct just as '. A few benefit from Ql or \(aq. But if in doubt, just use '.
2017-08-22kill .TnIngo Schwarze
2017-08-22default automount dir was changed from /a to /tmp_mnt in amd.c rev. 1.15;Ingo Schwarze
noticed by Alessandro DE LAURENZIS <just22 at atlantide dot t28 dot net>
2017-08-22fix default automount dir below FILES, related to amd.c rev. 1.15;Ingo Schwarze
from Alessandro DE LAURENZIS <just22 at atlantide dot t28 dot net>
2017-07-28plog format string should be literal.Frederic Cambus
OK florian@, deraadt@
2017-01-21Nuke whitespace foolish enough to expose itself during the greatKenneth R Westerback
"warning:" rectification.
2016-12-25Regenerate with -current rpcgen, eliminating "unused variable 'i'"Kenneth R Westerback
warning. ok millert@
2016-12-20Add 'default:' cases to switch statements that gcc whines about.Kenneth R Westerback
ok jung@
2016-03-16More "(<blah> *)0" -> NULL, avoiding any stdarg functions.Kenneth R Westerback
Feedback millert@ kettenis@
2015-12-12Remove the rest of the 20+ year-old memory debugging gunk. Discussedmmcc
with deraadt@
2015-12-11Remove debugging fluff from allocation functions. There's probably moremmcc
of this stuff elsewhere in amd. "such clutter just makes people not care" deraadt@
2015-12-05Remove a bunch of NULL-checks before free().mmcc
2015-09-13More FNDELAY/FIONBIO --> SOCK_NONBLOCK conversionsPhilip Guenther
ok millert@
2015-09-11Since immediate_abort is modified by a signal handler it must beTodd C. Miller
volatile sig_atomic_t.
2015-08-20stdlib.h is in scope; do not cast malloc/calloc/realloc*Theo de Raadt
2015-03-14Add missing #include <stdint.h> for SIZE_MAX.Todd C. Miller
2015-01-22amd's nfs_prot.x file has some tweaks from the standard; automate them with ed.Philip Guenther
Regenerate the amd's NFS RPC stubs with a current rpcgen, automating the post-generation tweaks to the svc stubs. However, do follow the modern naming style where the svc stubs have a _svc suffix. As a side benefit, this eliminates the need to #include <nfs/nfsproto.h> This is all a prelude to updating amd to talk NFSv3 with the kernel for its own "toplvl" mounts, to squash another y2038 issue.
2015-01-21Pass times as int64_t and eliminate the (long disabled) mount request.Philip Guenther
ABI change, so roll the RPC protocol version; how about 57 for OpenBSD 5.7?
2015-01-21regenPhilip Guenther
2015-01-21Remove all references to the amd -M option (it was disabled long ago) andPhilip Guenther
correct the texinfo validation errors, then re-enable validation
2015-01-21Regenerate the amq RPC stubs with a -current rpcgen, with somePhilip Guenther
post-processing of the server stub to match previous local changes. This corrects the type handling of mt_mounttime, so "amq /mountpoint" doesn't segv trying to treat a time_t as a pointer. With the file (re)generation fixed, we can more easily update the protocol to support 64bit time_t...
2015-01-21amq doesn't use anything from misc_rpc.cPhilip Guenther
2014-11-16so old it becomes untrueTheo de Raadt
2014-10-26Remove a gazillion useless casts to void*Philip Guenther
Eliminate a couple function pointer casts, fixing the function to match in one case
2014-10-26Delete casts to void* of the argument to free(): only needed when lyingPhilip Guenther
about constness and none of these were
2014-10-26Update to the modern RPC style with different names for server and clientPhilip Guenther
stubs (they have different prototypes, after all). Fill in missing prototypes. Use void* arguments on closure-style callbacks, with local variables of the expected type. Keep deleting unnecessary casts.
2014-10-26clnt_sperrno() is declared nowadays in <rpc/clnt.h>Philip Guenther
2014-10-26Sort #includes; pull in <time.h> for ctime()Philip Guenther
2014-10-26When regcomp() fails, use regerror() to get a useful error messagePhilip Guenther
2014-10-26timeout_mp() is static nowPhilip Guenther
2014-10-26Declare a few functions staticPhilip Guenther
2014-10-26Lint is deadPhilip Guenther
2014-10-26Delete information about porting to and running on other platforms.Philip Guenther
prodded by deraadt@
2014-10-26Delete inscrutable examples; the docs cover thisPhilip Guenther
2014-10-26Use vsyslog() instead of manually expanding the string and calling syslog(%s)Philip Guenther
Now that newline stripping isn't needed, use vfprintf() instead of formatting and then writing it out. Delete bogus XXX comment that predated the switch to vsnprintf() Make the format string const char *
2014-10-26Remove trailing newlines from a couple log messagesPhilip Guenther
2014-10-26Consistently use the extra parens in 'if ((var = hasmntval(...)))' toPhilip Guenther
suppress compiler warnings. Noted with gcc -Wall, then prodded by brad@ and clang
2014-10-26Replace xrealloc() with xreallocarray(). Break-out the 'log and die'Philip Guenther
function as xmallocfailure() and use that in the locations where reallocarray's checks alone aren't sufficient. ok doug@ deraadt@
1995-10-18initial import of NetBSD treeTheo de Raadt
2014-10-24retire networks(5) support;Ingo Schwarze
OK deraadt@
2014-10-20Change MTAB_TYPE_UFS from "ufs" to "ffs", fixing mount-restarting for them.Philip Guenther
Perform one level of expansion on the various "portability" macros from os-*.h Delete support for Hesiod and the pre-4.4 versions of the NFS API Delete the no-op unlock_mntlist() unifdef -UFASCIST_DF_COMMAND -UMOUNT_HELPER_SOURCE Move the struct mntent and MNTMAXSTR definitions into include/am.h Move the commented-out -DHAS_NDBM_MAPS into amd/Makefile Expand OS_REP to "bsd44". With config/* empty, delete them. "lot of stuff...but I know your process on this" deraadt@
1995-10-18initial import of NetBSD treeTheo de Raadt
2014-10-20unifdef -DHAS_REGEXP -DHAS_PASSWD_MAPS -DHAS_FILE_MAPS \Philip Guenther
-DHAS_NIS_MAPS -DHAS_NIS_RELOAD -DRPC_4 -DHAS_UNION_MAPS \ -DHAS_TCP_NFS -DOS_HAS_NDBM -DNFS_PROTOCOL_VERSION=3 \ -DNFS_ARGS_NEEDS_PATH -DPRECISE_SYMLINKS -DHAS_EMPTY_AUTOMOUNTS \ -DNEED_MNTOPT_PARSER -DSHORT_MOUNT_NAME -DHAS_NFS_QUALIFIED_NAMES \ -UUPDATE_MTAB -UFIXUP_MNTENT -UMNTENT_HDR -UMNTINFO_DEV \ -UMNTOPT_COMPRESS -UMNTOPT_NQNFS -UINFORM_MOUNTD \ -USUNOS4_WORKAROUND -UULTRIX_HACK ok deraadt@