Commit Graph

41 Commits

Author SHA1 Message Date
Sergey Kandaurov
77b2b60dcf Clean up -Wheader-guard warnings.
Submitted by:	<dt71@gmx.com>
MFC after:	3 days
X-MFC with:	r251848
2013-06-17 20:11:04 +00:00
Jung-uk Kim
a7880d59c9 Improve compatibility with recent flex from flex.sourceforge.net. 2013-05-03 23:51:32 +00:00
Joel Dahl
b2dc8cf4e2 Fix date. 2013-02-14 19:46:41 +00:00
Eitan Adler
8b3cc7155e Reference something which exists instead of the non-existent runsocks
program.

PR:		docs/173664
Submitted by:	wkoszek
Approved by:	bcr (mentor)
2013-02-09 17:13:54 +00:00
Eitan Adler
fbe37851ff Fix conditional expression: previously a bitvector would be operated
on by a logical not.

Approved by:	cperciva
MFC after:	3 days
2012-10-22 02:59:44 +00:00
Kevin Lo
e81fdb14a9 Add missing va_end. 2012-09-29 16:19:01 +00:00
Kevin Lo
ba670ce023 Make sure that each va_start has one and only one matching va_end,
especially in error cases.
2012-09-28 07:51:30 +00:00
Glen Barber
2fccbf04cc General mdoc(7) and typo fixes.
PR:		167696
Submitted by:	Nobuyuki Koganemaru (kogane!jp.freebsd.org)
MFC after:	3 days
2012-05-10 02:07:00 +00:00
Eitan Adler
50d675f7a9 Remove trailing whitespace per mdoc lint warning
Disussed with:	gavin
No objection from:	doc
Approved by:	joel
MFC after:	3 days
2012-03-29 05:02:12 +00:00
Olivier Houchard
d8139ed7ed Use srandom() to init the PRNG, not srand(), since we use random().
This is harmless because srandom() is called somewhere else, with time(NULL)
as a seed, but this is more correct.

Obtained from:	https://bitbucket.org/mux/csup
Pointyhat to:	not mux, somebody else

MFC after:	1 week
2012-02-29 22:35:09 +00:00
Ulrich Spörlein
487ac9ac21 Spelling fixes for usr.bin/ 2011-12-30 11:02:40 +00:00
Marius Strobl
78dbe84377 On FreeBSD just use the MD5 implementation of libmd rather than that of
libcrypto so we don't need to relinquish csup when world is built without
OpenSSL.
2011-12-24 12:16:38 +00:00
Dimitry Andric
be120ddea0 In usr.bin/csup/auth.c, cast time_t to intmax_t instead, and use the
corresponding printf length modifier.

Requested by:	mdf
MFC after:	1 week
2011-12-17 22:20:46 +00:00
Dimitry Andric
f666b9058d In usr.bin/csup/proto.c, use the correct printf length modifier to print
an off_t.

MFC after:	1 week
2011-12-17 13:52:53 +00:00
Dimitry Andric
582ad8aebf In usr.bin/csup/auth.c, use the correct number of bytes for zeroing the
shared secret, and use long long format to snprintf a time_t.

MFC after:	1 week
2011-12-17 13:14:44 +00:00
Adrian Chadd
c6ae748382 Handle the situation where fixups_close() has been called but more fixups
are still available on the queue.

Without this, the fixups producer/consumer pipeline will artifically terminate
before all of the fixups have been processed, leading to incomplete updates
and generally quite unhappy users.

Submitted by:	mux
2011-10-04 14:26:45 +00:00
Adrian Chadd
787ac3452c Update the comment to reflect what is actually going on.
Submitted by:	mux
2011-10-04 14:25:10 +00:00
Chris Rees
ae7bd33eb5 Include limits.h instead of sys/limits.h to improve portability.
PR:		bin/150772
Submitted by:	Derrick Brashear <shadow@gmail.com>
Reviewed by:	Garrett Cooper <yanegomi@gmail.com>
Approved by:	cognet
2011-09-28 17:03:49 +00:00
Christian Brueffer
43fb93b0da Fix typos in error messages.
Found by:	kib
Approved by:	re (kib)
MFC after:	1 week
2011-09-13 20:35:34 +00:00
Christian Brueffer
51ad0033d6 Fix csup to allow case insensitive server names in the auth file,
just as advertised in the manpage.

PR:		158652
Submitted by:	stephen
Approved by:	re (kib)
MFC after:	1 week
2011-09-13 20:33:27 +00:00
John Baldwin
c06b9dd0c0 Remove dead code.
MFC after:	2 weeks
2011-01-25 22:21:05 +00:00
Ulf Lilleengen
de956290ba - Signal that data should not be modified. 2010-12-18 20:43:18 +00:00
Joel Dahl
da52b4caaf Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with:	imp, rwatson
2010-12-11 08:32:16 +00:00
Ulrich Spörlein
0d9deed52c mdoc: drop redundant .Pp and .LP calls
They have no effect when coming in pairs, or before .Bl/.Bd
2010-10-08 12:40:16 +00:00
John Baldwin
6d6bc99ad2 If an RCS file is truncated, rcsfile_getdelta() will return NULL. Instead
of faulting, check for NULL.  However, returning an error would cause csup
to just abort the entire update.  Instead, break out of the loop and
return ok.  The attempts to update the file will trigger a MD5 failure which
will cause csup to download the entire file as a fixup.

Reviewed by:	lulf
MFC after:	1 week
2010-09-30 14:28:48 +00:00
Joel Dahl
60e1759be6 Don't point users at the old csup homepage.
Approved by:	lulf
2010-08-05 18:26:03 +00:00
Ulrich Spörlein
62486687ed mdoc: consistently spell our email addresses <foo@FreeBSD.org>
Reviewed by:	ru
2010-05-19 08:57:53 +00:00
Ulrich Spörlein
aa12cea2cc mdoc: order prologue macros consistently by Dd/Dt/Os
Although groff_mdoc(7) gives another impression, this is the ordering
most widely used and also required by mdocml/mandoc.

Reviewed by:	ru
Approved by:	philip, ed (mentors)
2010-04-14 19:08:06 +00:00
Ulrich Spörlein
c5ff2cdb99 Add and expand $FreeBSD$ keyword to allow committing to this file. 2010-04-14 19:06:39 +00:00
Ulf Lilleengen
ef9d5b89f9 - Fix spelling.
Pointed out by:	Pawel Worach <pawel.worach - at - gmail.com>, b. f. <bf1783 - at - googlemail.com>
2010-03-03 21:22:53 +00:00
Ulf Lilleengen
ff5cfe34d6 - Include CURDIR in case the makefile is not run from the same directory. 2010-03-03 16:45:58 +00:00
Ulf Lilleengen
6b807bd5a4 - Remove unused include path. 2010-03-03 08:24:15 +00:00
Ulf Lilleengen
1761232e1d - Revert Makefile to revision r203368, as the svn mv from contrib/csup replaced
the Makefile with a broken version.
2010-03-03 08:23:19 +00:00
Ulf Lilleengen
b1a3479cb6 - Unmark authentication support as a TODO item. 2010-03-02 07:37:35 +00:00
Ulf Lilleengen
4b6675a6f8 - Move csup away from contrib/ and into usr.bin/. Software is no longer
contributed, and main development is happening in the FreeBSD repo.

Suggested by:	joel
2010-03-02 07:26:07 +00:00
Ulf Lilleengen
1282a5e283 - Add support for CVSup authentication mechanisms to csup.
- Include a cpasswd script performing the same mechanisms as the cvpasswd
  utility from CVSup.

PR:		bin/114129
Submitted by:	Petar Zhivkov Petrov <pesho.petrov -at- gmail.com>
MFC after:	1 month
2010-02-02 05:57:42 +00:00
Ulf Lilleengen
8658b90899 - Add missing rsyncfile from Makefile 2008-11-23 19:43:45 +00:00
Ulf Lilleengen
3d4e599494 - Import csup work from p4. 2008-10-19 09:08:59 +00:00
Maxime Henrion
bb647cca85 Update make glue for csup-snap-20060313. 2006-03-14 03:53:50 +00:00
Maxime Henrion
2ed4c88a7d - Don't put the .h in SRCS.
- Use LDADD += -lpthread and DPADD += ${LIBPTHREAD} instead of -pthread.
- s/-I${.CURDIR}/-I./ to fix make obj.

Submitted by:	ru
2006-03-03 14:54:47 +00:00
Maxime Henrion
dd78bf1a6a Add make glue for building csup. Not yet connected to the build. 2006-03-03 04:28:13 +00:00