summaryrefslogtreecommitdiff
path: root/usr.bin/rdist
AgeCommit message (Collapse)Author
2016-03-30Avoid compiler warning about zero-length printf format strings.Todd C. Miller
Allow a NULL format in message() and switch the two calls to error() and message() with an empty format string to using NULL. OK deraadt@
2016-03-30In setnonblocking() rename "mode" variable to "flags".Todd C. Miller
2016-02-25remove extra word; from edgar pettijohnJason McIntyre
2015-12-22remove needless allocation castsmmcc
2015-12-09Remove NULL-checks before free(). ok tb@mmcc
2015-11-30change Xrs from now-defunct db(3) to dbopen(3); this wasn;t aJason McIntyre
straight replace: thanks both to schwarze and maja for feedback on how to rewrite parts; i've snuck in an rcs id->openbsd id change in dev_mkdb too;
2015-07-27use file system path (.Pa) semantic markup macros where appropriate.Igor Sobrado
ok jmc@
2015-02-08in getopt() blocks, stop incrementing flag variable which are supposedTheo de Raadt
to just be 0/1 ok miod florian
2015-01-21Assume NFS_CHECK and RO_CHECK are defined.Philip Guenther
We only need the dev_t and not the entire struct stat in mntinfo. Delete some superfluous casts.
2015-01-21Reduce opt_t from long to int.Philip Guenther
Debug message consistency: format opts with %#x and modes with %#04o
2015-01-21Remove unsafe micro-optimization of *bit test*Philip Guenther
2015-01-20Split out from rdist/defs.h the client-only and server-only bits intoPhilip Guenther
rdist/client.h and rdistd/server.h Only put #includes in .h files that are necessary for the .h to be used; all other #includes go in the .c files Move all extern variable declarations to the .h files, renaming local variables to avoid shadowing Replace me_type member of mntent_t with an "is NFS?" flag bit
2015-01-20We all have syslog() now; assume LOG_PID and LOG_DAEMONPhilip Guenther
2015-01-20Move MF_* to message.c tooPhilip Guenther
2015-01-20Move struct distoptinfo into distopt.c, killing the DISTOPTINFO typedefPhilip Guenther
Move struct msgtype and msgfacility into message.c, killing the MSGTYPE and MSGFACILITY typedefs Make getdistopt() static to distopt.c
2015-01-20Don't use utime(), so don't need <utime.h>Philip Guenther
2015-01-20SELECT_FD_TYPE is obsoletePhilip Guenther
2015-01-20Move #include <syslog.h> to the one file that needs itPhilip Guenther
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-07-12The statdb code has never been complete herePhilip Guenther
2014-07-12Kill never enabled #ifdefsPhilip Guenther
2014-07-12config-def.h is now unnecessary; merge config-data.h into defs.hPhilip Guenther
2014-07-12Kill os-openbsd.h: we have <paths.h>, _PATH_RSH, and utimes()Philip Guenther
2014-07-12SETARGS and NEED_HASMNTOPT paths are dead; rshrcmd() and libz stuff arePhilip Guenther
no longer (were never?) used
2014-07-12Deleted unused local prototypes for systems stuffPhilip Guenther
2014-07-12No really, assume POSIX: errno is declared for us and sys/stat.h hasPhilip Guenther
S_IX{USR,GRP,OTH}
2014-07-12Delete unused globalPhilip Guenther
2014-07-12Eliminate some annoying variable shadowingPhilip Guenther
2014-07-12Yes, we have setproctitle(). Delete that and several unused HAVE_* #definesPhilip Guenther
2014-07-12Unused variable from oldrdist cleanupPhilip Guenther
2014-07-11delete all traces of oldrdist -Server command. ok beck guentherTed Unangst
2014-07-10Missed a chunk of the previousPhilip Guenther
2014-07-10fleanse out oldrdist supportTed Unangst
2014-07-10Assume POSIX: write() takes size_t and returns ssize_tPhilip Guenther
2014-07-05Assume we have getfsstat(); simplify the interface to the *mountent()Philip Guenther
wrappers
2014-07-05Assume BSD44: statfs()Philip Guenther
2014-07-05Our fork() never missesPhilip Guenther
2014-07-05Assume POSIX: sigrocmask()Philip Guenther
Properly use SIG_SIGMASK to restore previous mask
2014-07-05Assume POSIX: lchown(), fchown(), fchmod(), fchmodat()Philip Guenther
Assume we have rcmdsh()
2014-07-05Assume POSIX: uid_t and gid_tPhilip Guenther
2014-07-05Assume POSIX: <dirent.h>, struct direntPhilip Guenther
2014-07-05Assume POSIX: waitpid(), select(), and <sys/select.h>Philip Guenther
2014-07-05Assume C89: stdargs, const, and setvbuf()Philip Guenther
Assume POSIX: O_NONBLOCK and S_IS{DIR,REG,LNK}
2014-07-05ELF uberalles!Philip Guenther
2014-07-05Delete ancient unused demo cronjobPhilip Guenther
2014-07-05Use xcalloc() in waitup(): the calloc fails, simply returning ain't gonnaPhilip Guenther
help
2014-07-05Use void* in malloc/realloc/calloc wrappersPhilip Guenther
2014-07-04Convert a malloc+memset to a callocPhilip Guenther
based on diff from Benjamin Baier (programmer (at) netzbasis.de)
2014-06-07remove last few uses of __PTheo de Raadt
2014-04-24simpler description for -P, avoiding the need to discuss rsh;Jason McIntyre