Commit Graph

27 Commits

Author SHA1 Message Date
christos
10dc222174 change to strchr and strrchr 2009-10-17 20:46:03 +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
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
c20e20ce2a From Anon Ymous:
- add __unused
- fix volatile
2006-12-20 16:33:34 +00:00
christos
3cd2d0576e rename salloc to estrdup. 2006-04-02 01:39:48 +00:00
christos
76ad3db40d Coverity CID 1644: Plug memory leak. 2006-03-22 17:03:29 +00:00
christos
84d29c783e Coverity CID 1645: Fix memory leak. 2006-03-22 17:01:47 +00:00
christos
c8f598b3af Coverity CID 1646: Free storage on error 2006-03-22 16:58:30 +00:00
christos
2ed64bb14a Coverity CID 1647: Close file on error. 2006-03-22 16:57:18 +00:00
christos
c8ee373ee5 Port to linux 2003-04-03 17:14:24 +00:00
wiz
4f156aff23 Fix a lint warning by removing some #ifdef lint (!?!). 2002-07-10 23:55:06 +00:00
wiz
09e4390a6e De-lint a bit. 2002-07-10 21:28:13 +00:00
wiz
a330b47ad5 Cleanup, part 2:
Remove 'register'. ANSIfy. indent(1). Static -> static.
Change some ``#include <header.h>'' to ``#include "header.h"'' for
local headers.
Fix function declaration mistakes uncovered by ANSIfication.
2002-07-10 20:19:38 +00:00
wiz
77085dee52 Cleanup, part 1:
Remove sysent.h, unneeded.
Remove __P().
unifdef __STDC__
Remove some #if 0 parts.
Start ANSIfication.
2002-07-10 18:53:56 +00:00
pk
5c3c96216b Software_Distribution => Software.Distribution. 1999-04-12 20:48:07 +00:00
mrg
5ddb76d383 remove some register 1998-03-30 02:29:14 +00:00
msaitoh
6bbe51cef1 fix typo 1997-11-15 17:42:07 +00:00
mycroft
6af5bbb01a Use S_IS*(), not S_IF*. 1997-10-19 19:53:54 +00:00
christos
7a1ede0553 - add $NetBSD$
- remove all $Log$ instances and the extra logs caused by our local changes.
1997-06-17 18:56:02 +00:00
christos
2c22a216ba 64 bit patches (mostly long -> time_t) from Matthew Jacob (?)
sup now works on the alpha!
1996-12-31 18:08:00 +00:00
christos
9d10a25919 - add missing prototypes.
- fix function call inconsistencies
- fix int <-> long and pointer conversions
It should run now on 64 bit machines...
1996-12-23 19:42:01 +00:00
christos
b33b1aed5c - for portability make sure that we never use "" as a pathname, always convert
it to "."
- include sockio.h if needed to define SIOCGIFCONF (for svr4)
- use POSIX signals and wait macros
- add -S silent flag, so that the client does not print messages unless there
  is something wrong
- use flock or lockf as appropriate
- use fstatfs or fstatvfs to find out if a filesystem is mounted over nfs,
  don't depend on the major() = 255 hack; it only works on legacy systems.
- use gzip -cf to make sure that gzip compresses the file even when the file
  would expand.
- punt on defining vsnprintf if _IOSTRG is not defined; use sprintf...

To compile sup on systems other than NetBSD, you'll need a copy of daemon.c,
vis.c, vis.h and sys/cdefs.h. Maybe we should keep those in the distribution?
1996-09-05 16:50:01 +00:00
christos
1949f5ea6b - runio fails when result != 0 not only < 0
- print vis-encoded file in the scanner.
1995-10-29 23:54:45 +00:00
christos
363e119397 - Don't use system(3) to fork processes. It is a big security hole.
- Encode the filenames in the scan files using strvis(3), so filenames
  that contain newlines or other weird characters don't break the scanner.
1995-06-24 16:21:33 +00:00
brezak
0ba3f69cb7 Change <sys/dir.h> to <dirent.h> 1994-01-03 14:47:23 +00:00
cgd
a1e510b12f initial import of CMU's SUP to NetBSD 1993-05-21 14:52:16 +00:00