Commit Graph

240 Commits

Author SHA1 Message Date
spz
b32980a908 document the anon account for anonymous access
fixing PR misc/5545
(the last bits thereof)
2013-05-28 20:13:16 +00:00
christos
e77d8145f4 - add new ignore chown/chgrp flag
- bump strings space to 8K someone has 4K paths now.
- use snprintf where possible and detect long lines.
2013-04-09 16:39:19 +00:00
christos
6bb059914d return busy for checkchild instead of killing the connection 2013-04-09 16:38:18 +00:00
christos
bec987f94b fix compilation issues. 2013-03-08 20:58:35 +00:00
christos
524dd7b3c3 - don't allow multiple active connections from the same host
- prefix all messages with the local hostname
- more error checking
2013-03-08 20:56:44 +00:00
martin
ac1de44af3 "errs" might be clobbered by longjmp, so declare it volatile. 2012-04-25 22:35:00 +00:00
christos
f9d287c05c forgot the %s for the error 2012-04-25 18:07:45 +00:00
christos
1ce3b4a502 - don't declare victory when there are errors.
- better error messages.
2012-04-25 17:33:49 +00:00
christos
539c90b5a5 be more portable, explain what we are doing, simplify. 2011-12-07 22:52:54 +00:00
mrg
162d7d5b76 remove an extra ".TP" that broke my build. 2011-09-22 07:30:04 +00:00
wiz
bb903ea004 New sentence, new line. Remove empty EXAMPLE section. 2011-09-21 20:12:11 +00:00
christos
9a4d7431cb Add a canonicalize option to avoid disaster when one converts directories
to symlinks in the tree and back. This option is expensive, it could be
made better by cacheing, but not now.
2011-09-21 19:34:54 +00:00
christos
9525895f88 constify 2011-09-21 19:32:59 +00:00
plunky
9f61b80465 NULL does not need a cast 2011-08-31 16:24:54 +00:00
joerg
a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
christos
ade14f59b9 don't decrement if children are 0 2011-03-17 19:43:34 +00:00
christos
155180a9df - safer way to count kids
- if we are really bombarded with connections, don't bother to fork() and
  converse.
2011-03-16 20:17:00 +00:00
christos
976d43ec5c provide unconst for the havenots 2011-03-16 20:15:59 +00:00
wiz
57af1dbb63 unifdef -U RCSSTAT
This code was added in 1.2 by brezak with changes for the commit message:
"Change <sys/dir.h> to <dirent.h>"
and looks like it never worked.
2011-01-04 10:23:40 +00:00
wiz
28f00e2eeb Fix fd leaks in error cases. Found by cppcheck. 2011-01-04 10:14:25 +00:00
christos
aeccdbb591 improve error handling and logging. 2010-10-20 17:05:54 +00:00
joerg
d1a4d78e86 Drop undefined macros. 2009-11-02 00:33:34 +00:00
joerg
02c40990a1 Drop ".i0", it is an undefined macro. 2009-11-02 00:29:04 +00:00
joerg
fa47d7aeec Fix markup. 2009-11-01 20:25:57 +00:00
snj
1a868936e6 Remove 3rd and 4th clauses. Approved by Mats O Jansson (copyright holder). 2009-10-21 00:01:56 +00:00
christos
b0af10adcf fix size_t issues on _LP64 2009-10-18 15:23:54 +00:00
christos
5a6c88acad pass lint 2009-10-17 22:26:13 +00:00
christos
10dc222174 change to strchr and strrchr 2009-10-17 20:46:03 +00:00
christos
99d395c60f Make this compile again. I should have tried to compile the patches myself,
but ran out of time this morning.
2009-10-16 22:45:18 +00:00
christos
de1256ff71 constification from Paul Ripke to make it compile on OS/X 2009-10-16 12:41:37 +00:00
christos
da2c7e7359 - use const where appropriate
- don't cast return value from malloc
2009-10-13 12:11:19 +00:00
jakllsch
0f020c836e doswitch() has changed the value of argc by the time it's checked here,
adjust accordingly.
2009-07-17 20:31:20 +00:00
christos
3fe391d776 fix for non NetBSD systems 2009-06-20 17:03:25 +00:00
dyoung
4ec9bd2b05 Use the definition in <sys/param.h> instead of redefining MAX().
(Used to work because the redefinition was identical to the original
definition, but no longer.)

While I'm here, define sizeofA() in terms of __arraycount() from
<sys/cdefs.h>.
2009-06-19 23:36:41 +00:00
lukem
d877c4c3c0 Enable WARNS=4 by default, except for:
cpuctl  dumplfs  hprop  ipf  iprop-log  kadmin  kcm  kdc  kdigest
	kimpersonate  kstash  ktutil  makefs  ndbootd  ntp  pppd  quot
	racoon  racoonctl  rtadvd  sntp  sup  tcpdchk  tcpdmatch  tcpdump
	traceroute  traceroute6  user  veriexecgen  wsmoused  zic
(Mostly third-party applications)
2009-04-22 15:23:01 +00:00
christos
41802a0069 fix horrible memory trashing. 2009-03-04 18:22:14 +00:00
junyoung
555ffa79b2 Fix one more build breakage ("warning: 'er' may be used uninitialized in
this function").
2009-01-16 10:24:20 +00:00
junyoung
121584256f Fix build error (hi christos). 2009-01-16 07:09:09 +00:00
christos
651aa5ccda - remove errmsg; we all have strerror() these days.
- sanitize error printing. Try to print the system error or a reason for
  the message.
2009-01-15 15:58:42 +00:00
christos
19540887f2 - Don't use TOOL_SED; we are not a regular Makefile
- PREFIX defaults to /usr/pkg
- use -g
- delete errmsg.c
2009-01-15 15:57:18 +00:00
christos
9590239feb remove debugging. 2009-01-04 17:10:47 +00:00
christos
07236533dd print the hostname in the subject of the notification message. 2008-12-18 18:11:49 +00:00
christos
a16995fb71 fix extra argument parsing I broke in previous commit. 2008-12-17 18:28:22 +00:00
christos
83437ade68 - in silent run, only print notifications on error.
- avoid unnecessary overlapping strncpy
2008-12-17 17:56:32 +00:00
christos
bf23612c38 - use getopt to parse argument instead of home brewed code
- add -M user flag to specify the username to send mail to from the command line
- some snprintf
- sort options.
2008-12-17 17:54:51 +00:00
christos
0f9fc8e8fb document -M flag. 2008-12-17 17:53:19 +00:00
apb
a02cace51f Use ${TOOL_SED} instead of plain "sed" in "!=" assignments.
This may need more work to prevent warning messages during
"make cleandir" when the commands in "!=" assignments are executed
even though tools may not have been built.
2008-10-25 22:35:36 +00:00
christos
26d7c490fb mention the delete bug in the man page. prompted by perry. 2008-10-01 12:43:46 +00:00
christos
ffa1f2c907 Fix symlink lossage:
- Use lstat instead of stat to find the destination path. we can make a symlink
  to a broken symlink this way.
- When calling process to create a link, check if the source is a symlink
  instead of trying to remove what the symlink points to!
- Don't create hard links to directories.

XXX: NB. Still sup is broken when used with the delete option. This is because
in the delete pass, it goes and tries to delete all files in the old list
that don't exist in the new list. This is a problem when a directory becomes
a symlink to a hierarchy that contains the same names. Then sup will cross
the symlink and start deleting files and directories from the destination.
This is not easily fixed. Don't use sup with symlink/rsymlink and the delete
option at the same time or *be careful*!
2008-09-30 20:49:14 +00:00
christos
cd84a96731 fix signed comparison warning. 2008-07-28 17:40:33 +00:00