Commit Graph

219 Commits

Author SHA1 Message Date
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
christos 0bb12611f2 let us be 0.3 2008-05-30 14:23:54 +00:00
christos 77cf38f568 PR/38797: FreeBSD support from ttw plus bsd at cobbled dot net. 2008-05-30 14:19:57 +00:00
lukem 66176dfdff Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)
2008-05-03 14:48:30 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
christos 7ee4122ccd get only the last path component of the program name. 2008-01-03 04:13:54 +00:00
christos 14002ac9c8 make sup-0.2 2007-12-20 20:25:08 +00:00
christos 8f6e6d108f include libc.h and c.h after all the headers, so that __unused is not defined
until the headers have been included.
2007-12-20 20:17:52 +00:00
christos fc5737cefd use setproctitle, so that we know which host we are serving. 2007-12-20 20:17:15 +00:00
christos 3791e7cc61 - add setproctitle
- add commented out DEFS for the layout I use.
2007-12-20 20:16:34 +00:00
christos d5abced1d5 If the filesystem where the scan file resides got full while the scanner is
running, you can end up with an incomplete scan file because there was no
error checking done. Then sup will happily delete all the files that are
missing from the scan file. Make sure we have written a good scan file before
renaming.
2007-12-20 20:15:59 +00:00
christos 55dfe21e44 more EE_XXX stuff for different layout. 2007-12-20 20:14:24 +00:00
christos 92376661d1 __unused for those who don't have it [linux] 2007-12-20 20:12:12 +00:00
christos 6ec6ec5548 setproctitle for those who don't have it [linux] 2007-12-20 20:11:24 +00:00
christos 2220b74719 patch from pkgsrc 2007-12-06 21:58:58 +00:00
taca a3cbbf6d39 Remove an unused variable at previous commit in listdir(). 2007-10-07 05:25:19 +00:00
christos 9f1fcc0d86 portability fixes from joerg. 2007-10-06 20:19:52 +00:00
christos ce7376f2ed more cygwin fixes. 2007-07-20 18:58:14 +00:00
christos 52c8d9f862 cygwin support. 2007-07-20 16:39:05 +00:00
tls 4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
msaitoh 8ce1f4fff2 fix typos 2007-04-29 20:23:34 +00:00
christos c20e20ce2a From Anon Ymous:
- add __unused
- fix volatile
2006-12-20 16:33:34 +00:00