Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-06-28 | When system calls indicate an error they return -1, not some arbitrary | Theo 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-28 | mkstemp() returns -1 on failure | Theo de Raadt | |
2018-09-21 | Use password/group cache functions and avoid stashing a pointer to | Todd C. Miller | |
the return value of getgrgid(3) or getgrnam(3) which relies on undefined behavior. The rdist server will now use getgroups(2) to determine group membership of the invoking user. In addition, there is now one implementation of tilde expansion instead of two. OK tb@ tim@ | |||
2018-09-09 | Fix a crash in rdistd triggered by the recent getpw{ent,nam,uid} | Todd C. Miller | |
changes. This stems from rdist stashing a pointer to the static area used by getpw{ent,nam,uid} and using it to avoid repeating passwd lookups when pw->pw_name matches the user to be looked up. This relied on undefined behavior, and with the recent passwd changes, is no longer possible as the old pointer will be invalidated. A better approach is to use the upcoming uid_from_user(3) functions. Found by and fix OK tim@ | |||
2017-10-27 | Use <elf.h> instead of <elf_abi.h> | Martin Pieuchot | |
ok jasper@, jca@, deraadt@ | |||
2017-10-17 | remove the remaining references to .depend files since nothing creates them | Christian Weisgerber | |
any longer; ok espie@ deraadt@ | |||
2017-08-30 | Avoid clang warning by explicitly marking a constant unsigned; ok millert@ | Otto Moerbeek | |
2017-07-09 | have bsd.prog.mk/bsd.lib.mk generate .y -> .c/.h rules without intermediate | Marc Espie | |
files. This fixes up parallel builds in the default case. FreeBSD does something similar. okay millert@ | |||
2017-01-01 | Hyphenate compound adjectives 'up-to-date', 'out-of-date' and 'well-known' | Theo Buehler | |
if they precede the noun and omit hyphens otherwise. ok tj | |||
2016-03-30 | Avoid 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-30 | In setnonblocking() rename "mode" variable to "flags". | Todd C. Miller | |
2016-02-25 | remove extra word; from edgar pettijohn | Jason McIntyre | |
2015-12-22 | remove needless allocation casts | mmcc | |
2015-12-09 | Remove NULL-checks before free(). ok tb@ | mmcc | |
2015-11-30 | change Xrs from now-defunct db(3) to dbopen(3); this wasn;t a | Jason 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-27 | use file system path (.Pa) semantic markup macros where appropriate. | Igor Sobrado | |
ok jmc@ | |||
2015-02-08 | in getopt() blocks, stop incrementing flag variable which are supposed | Theo de Raadt | |
to just be 0/1 ok miod florian | |||
2015-01-21 | Assume 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-21 | Reduce opt_t from long to int. | Philip Guenther | |
Debug message consistency: format opts with %#x and modes with %#04o | |||
2015-01-21 | Remove unsafe micro-optimization of *bit test* | Philip Guenther | |
2015-01-20 | Split out from rdist/defs.h the client-only and server-only bits into | Philip 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-20 | We all have syslog() now; assume LOG_PID and LOG_DAEMON | Philip Guenther | |
2015-01-20 | Move MF_* to message.c too | Philip Guenther | |
2015-01-20 | Move struct distoptinfo into distopt.c, killing the DISTOPTINFO typedef | Philip Guenther | |
Move struct msgtype and msgfacility into message.c, killing the MSGTYPE and MSGFACILITY typedefs Make getdistopt() static to distopt.c | |||
2015-01-20 | Don't use utime(), so don't need <utime.h> | Philip Guenther | |
2015-01-20 | SELECT_FD_TYPE is obsolete | Philip Guenther | |
2015-01-20 | Move #include <syslog.h> to the one file that needs it | Philip Guenther | |
2015-01-16 | Replace <sys/param.h> with <limits.h> and other less dirty headers where | Theo 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-12 | The statdb code has never been complete here | Philip Guenther | |
2014-07-12 | Kill never enabled #ifdefs | Philip Guenther | |
2014-07-12 | config-def.h is now unnecessary; merge config-data.h into defs.h | Philip Guenther | |
2014-07-12 | Kill os-openbsd.h: we have <paths.h>, _PATH_RSH, and utimes() | Philip Guenther | |
2014-07-12 | SETARGS and NEED_HASMNTOPT paths are dead; rshrcmd() and libz stuff are | Philip Guenther | |
no longer (were never?) used | |||
2014-07-12 | Deleted unused local prototypes for systems stuff | Philip Guenther | |
2014-07-12 | No really, assume POSIX: errno is declared for us and sys/stat.h has | Philip Guenther | |
S_IX{USR,GRP,OTH} | |||
2014-07-12 | Delete unused global | Philip Guenther | |
2014-07-12 | Eliminate some annoying variable shadowing | Philip Guenther | |
2014-07-12 | Yes, we have setproctitle(). Delete that and several unused HAVE_* #defines | Philip Guenther | |
2014-07-12 | Unused variable from oldrdist cleanup | Philip Guenther | |
2014-07-11 | delete all traces of oldrdist -Server command. ok beck guenther | Ted Unangst | |
2014-07-10 | Missed a chunk of the previous | Philip Guenther | |
2014-07-10 | fleanse out oldrdist support | Ted Unangst | |
2014-07-10 | Assume POSIX: write() takes size_t and returns ssize_t | Philip Guenther | |
2014-07-05 | Assume we have getfsstat(); simplify the interface to the *mountent() | Philip Guenther | |
wrappers | |||
2014-07-05 | Assume BSD44: statfs() | Philip Guenther | |
2014-07-05 | Our fork() never misses | Philip Guenther | |
2014-07-05 | Assume POSIX: sigrocmask() | Philip Guenther | |
Properly use SIG_SIGMASK to restore previous mask | |||
2014-07-05 | Assume POSIX: lchown(), fchown(), fchmod(), fchmodat() | Philip Guenther | |
Assume we have rcmdsh() | |||
2014-07-05 | Assume POSIX: uid_t and gid_t | Philip Guenther | |
2014-07-05 | Assume POSIX: <dirent.h>, struct dirent | Philip Guenther | |