#
1.30 |
|
22-Jun-2021 |
jmc |
reduce verbosity in usage and make it match SYNOPSIS; i reformatted it to match 80w, and removed two functions that had been used to populate usage: getdistoptlist and msgprusage;
ok millert
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
|
#
1.29 |
|
28-Jun-2019 |
deraadt |
mkstemp() returns -1 on failure
|
Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.28 |
|
30-Mar-2016 |
millert |
Avoid compiler warning about zero-length printf format strings. 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@
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE
|
#
1.27 |
|
20-Jan-2015 |
guenther |
Split out from rdist/defs.h the client-only and server-only bits into 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
|
#
1.26 |
|
20-Jan-2015 |
guenther |
We all have syslog() now; assume LOG_PID and LOG_DAEMON
|
#
1.25 |
|
20-Jan-2015 |
guenther |
Move MF_* to message.c too
|
#
1.24 |
|
20-Jan-2015 |
guenther |
Move struct distoptinfo into distopt.c, killing the DISTOPTINFO typedef Move struct msgtype and msgfacility into message.c, killing the MSGTYPE and MSGFACILITY typedefs Make getdistopt() static to distopt.c
|
#
1.23 |
|
20-Jan-2015 |
guenther |
Move #include <syslog.h> to the one file that needs it
|
#
1.22 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where 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)
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.21 |
|
05-Jul-2014 |
guenther |
Assume C89: stdargs, const, and setvbuf() Assume POSIX: O_NONBLOCK and S_IS{DIR,REG,LNK}
|
#
1.20 |
|
05-Jul-2014 |
guenther |
Use void* in malloc/realloc/calloc wrappers
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.19 |
|
21-Dec-2013 |
guenther |
Constipate some functions
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.18 |
|
27-Oct-2009 |
deraadt |
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and 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
|
Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.17 |
|
14-Sep-2007 |
chl |
remove some warnings: unused variable `variable' `variable' might be used uninitialized in this function
ok gilles@ ray@
|
#
1.16 |
|
11-Sep-2007 |
gilles |
use strcspn to properly overwrite '\n' in fgets returned buffer
ok pyr@, ray@, millert@, moritz@, chl@
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
|
#
1.15 |
|
03-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
1.14 |
|
14-May-2003 |
millert |
o Sync w/ freerdist 0.92 minus the compress option o KNF and ANSIfy the function headers
Sparse file support is currently a no-op since it didn't work. Proper sparse file support will be added later.
|
#
1.13 |
|
19-Apr-2003 |
millert |
strcpy/strcat/sprintf removal; krw@ OK
|
#
1.12 |
|
06-Apr-2003 |
deraadt |
kill another strcat; ok krw
|
#
1.11 |
|
05-Apr-2003 |
deraadt |
strings; ok miod ho krw
|
Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.10 |
|
19-Nov-2001 |
mpech |
kill more registers
millert@ ok
|
Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
|
#
1.9 |
|
10-Nov-2000 |
provos |
seperate -> separate, okay aaron@
|
Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE
|
#
1.8 |
|
04-Feb-1999 |
millert |
Fix a serious memory consumption problem when running over directories that contain many hard-linked files; johnh@isi.edu Also add an xstrdup() that behaves like xmalloc() on failure.
|
Revision tags: OPENBSD_2_4_BASE
|
#
1.7 |
|
26-Jun-1998 |
millert |
rdist 6.1.4 + OpenBSD patches + some -Wall
|
Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
|
#
1.6 |
|
29-Jul-1996 |
millert |
Now have a common message.c instead of two copies.
|
#
1.5 |
|
25-Jul-1996 |
millert |
Updated to rdist 6.1.3. Used real snprintf() (instead of string length in the format) since we have it.
|
#
1.4 |
|
26-Jun-1996 |
deraadt |
rcsid
|
#
1.3 |
|
25-Jun-1996 |
deraadt |
mkstemp & fdopen
|
#
1.2 |
|
05-Mar-1996 |
dm |
rdist 6.1.2
|
#
1.1 |
|
03-Feb-1996 |
dm |
rdist 6.1.1
|
#
1.29 |
|
28-Jun-2019 |
deraadt |
mkstemp() returns -1 on failure
|
Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.28 |
|
30-Mar-2016 |
millert |
Avoid compiler warning about zero-length printf format strings. 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@
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE
|
#
1.27 |
|
20-Jan-2015 |
guenther |
Split out from rdist/defs.h the client-only and server-only bits into 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
|
#
1.26 |
|
20-Jan-2015 |
guenther |
We all have syslog() now; assume LOG_PID and LOG_DAEMON
|
#
1.25 |
|
20-Jan-2015 |
guenther |
Move MF_* to message.c too
|
#
1.24 |
|
20-Jan-2015 |
guenther |
Move struct distoptinfo into distopt.c, killing the DISTOPTINFO typedef Move struct msgtype and msgfacility into message.c, killing the MSGTYPE and MSGFACILITY typedefs Make getdistopt() static to distopt.c
|
#
1.23 |
|
20-Jan-2015 |
guenther |
Move #include <syslog.h> to the one file that needs it
|
#
1.22 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where 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)
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.21 |
|
05-Jul-2014 |
guenther |
Assume C89: stdargs, const, and setvbuf() Assume POSIX: O_NONBLOCK and S_IS{DIR,REG,LNK}
|
#
1.20 |
|
05-Jul-2014 |
guenther |
Use void* in malloc/realloc/calloc wrappers
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.19 |
|
21-Dec-2013 |
guenther |
Constipate some functions
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.18 |
|
27-Oct-2009 |
deraadt |
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and 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
|
Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.17 |
|
14-Sep-2007 |
chl |
remove some warnings: unused variable `variable' `variable' might be used uninitialized in this function
ok gilles@ ray@
|
#
1.16 |
|
11-Sep-2007 |
gilles |
use strcspn to properly overwrite '\n' in fgets returned buffer
ok pyr@, ray@, millert@, moritz@, chl@
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
|
#
1.15 |
|
03-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
1.14 |
|
14-May-2003 |
millert |
o Sync w/ freerdist 0.92 minus the compress option o KNF and ANSIfy the function headers
Sparse file support is currently a no-op since it didn't work. Proper sparse file support will be added later.
|
#
1.13 |
|
19-Apr-2003 |
millert |
strcpy/strcat/sprintf removal; krw@ OK
|
#
1.12 |
|
06-Apr-2003 |
deraadt |
kill another strcat; ok krw
|
#
1.11 |
|
05-Apr-2003 |
deraadt |
strings; ok miod ho krw
|
Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.10 |
|
19-Nov-2001 |
mpech |
kill more registers
millert@ ok
|
Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
|
#
1.9 |
|
10-Nov-2000 |
provos |
seperate -> separate, okay aaron@
|
Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE
|
#
1.8 |
|
04-Feb-1999 |
millert |
Fix a serious memory consumption problem when running over directories that contain many hard-linked files; johnh@isi.edu Also add an xstrdup() that behaves like xmalloc() on failure.
|
Revision tags: OPENBSD_2_4_BASE
|
#
1.7 |
|
26-Jun-1998 |
millert |
rdist 6.1.4 + OpenBSD patches + some -Wall
|
Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
|
#
1.6 |
|
29-Jul-1996 |
millert |
Now have a common message.c instead of two copies.
|
#
1.5 |
|
25-Jul-1996 |
millert |
Updated to rdist 6.1.3. Used real snprintf() (instead of string length in the format) since we have it.
|
#
1.4 |
|
26-Jun-1996 |
deraadt |
rcsid
|
#
1.3 |
|
25-Jun-1996 |
deraadt |
mkstemp & fdopen
|
#
1.2 |
|
05-Mar-1996 |
dm |
rdist 6.1.2
|
#
1.1 |
|
03-Feb-1996 |
dm |
rdist 6.1.1
|
Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.28 |
|
30-Mar-2016 |
millert |
Avoid compiler warning about zero-length printf format strings. 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@
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE
|
#
1.27 |
|
20-Jan-2015 |
guenther |
Split out from rdist/defs.h the client-only and server-only bits into 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
|
#
1.26 |
|
20-Jan-2015 |
guenther |
We all have syslog() now; assume LOG_PID and LOG_DAEMON
|
#
1.25 |
|
20-Jan-2015 |
guenther |
Move MF_* to message.c too
|
#
1.24 |
|
20-Jan-2015 |
guenther |
Move struct distoptinfo into distopt.c, killing the DISTOPTINFO typedef Move struct msgtype and msgfacility into message.c, killing the MSGTYPE and MSGFACILITY typedefs Make getdistopt() static to distopt.c
|
#
1.23 |
|
20-Jan-2015 |
guenther |
Move #include <syslog.h> to the one file that needs it
|
#
1.22 |
|
16-Jan-2015 |
deraadt |
Replace <sys/param.h> with <limits.h> and other less dirty headers where 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)
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.21 |
|
05-Jul-2014 |
guenther |
Assume C89: stdargs, const, and setvbuf() Assume POSIX: O_NONBLOCK and S_IS{DIR,REG,LNK}
|
#
1.20 |
|
05-Jul-2014 |
guenther |
Use void* in malloc/realloc/calloc wrappers
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.19 |
|
21-Dec-2013 |
guenther |
Constipate some functions
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.18 |
|
27-Oct-2009 |
deraadt |
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and 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
|
Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.17 |
|
14-Sep-2007 |
chl |
remove some warnings: unused variable `variable' `variable' might be used uninitialized in this function
ok gilles@ ray@
|
#
1.16 |
|
11-Sep-2007 |
gilles |
use strcspn to properly overwrite '\n' in fgets returned buffer
ok pyr@, ray@, millert@, moritz@, chl@
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
|
#
1.15 |
|
03-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
#
1.14 |
|
14-May-2003 |
millert |
o Sync w/ freerdist 0.92 minus the compress option o KNF and ANSIfy the function headers
Sparse file support is currently a no-op since it didn't work. Proper sparse file support will be added later.
|
#
1.13 |
|
19-Apr-2003 |
millert |
strcpy/strcat/sprintf removal; krw@ OK
|
#
1.12 |
|
06-Apr-2003 |
deraadt |
kill another strcat; ok krw
|
#
1.11 |
|
05-Apr-2003 |
deraadt |
strings; ok miod ho krw
|
Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.10 |
|
19-Nov-2001 |
mpech |
kill more registers
millert@ ok
|
Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
|
#
1.9 |
|
10-Nov-2000 |
provos |
seperate -> separate, okay aaron@
|
Revision tags: OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE
|
#
1.8 |
|
04-Feb-1999 |
millert |
Fix a serious memory consumption problem when running over directories that contain many hard-linked files; johnh@isi.edu Also add an xstrdup() that behaves like xmalloc() on failure.
|
Revision tags: OPENBSD_2_4_BASE
|
#
1.7 |
|
26-Jun-1998 |
millert |
rdist 6.1.4 + OpenBSD patches + some -Wall
|
Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
|
#
1.6 |
|
29-Jul-1996 |
millert |
Now have a common message.c instead of two copies.
|
#
1.5 |
|
25-Jul-1996 |
millert |
Updated to rdist 6.1.3. Used real snprintf() (instead of string length in the format) since we have it.
|
#
1.4 |
|
26-Jun-1996 |
deraadt |
rcsid
|
#
1.3 |
|
25-Jun-1996 |
deraadt |
mkstemp & fdopen
|
#
1.2 |
|
05-Mar-1996 |
dm |
rdist 6.1.2
|
#
1.1 |
|
03-Feb-1996 |
dm |
rdist 6.1.1
|