christos
c7a226af02
When creating directories, make sure you remove previous non-directories
...
before doing so, otherwise sup fails.
1997-06-18 15:23:52 +00:00
christos
1933233e0b
Cleanup unsigned char -> char and #if __STDC__ -> #ifdef __STDC__
...
inconsistencies
1997-06-17 21:38:23 +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
12f6930b5a
Avoid coredump in svrfinishup.
1997-06-17 18:37:59 +00:00
christos
cb8aa82b0c
compare only the prefix "nfs", not the whole word, so we match "nfs3" too.
1997-02-26 15:06:46 +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
4a55cd8d26
Use a better fix for vsnprintf on svr4. Apparently, svr4 stdio does not
...
have _IOSTRG, but it uses _IOREAD to indicate that _doprnt() should print
to the buffer and not to the file stream.
1996-09-30 04:19:55 +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
glass
8d3a219347
if the function returns nothing, declare it void
1995-09-16 19:12:14 +00:00
glass
9f5762d576
if the function returns nothing, declare it void
1995-09-16 19:01:25 +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
christos
695670c5fa
fixed bug related to the ascii `when' files previous fix, where the -t
...
option would fail to read the timestamp files.
1995-06-09 04:33:34 +00:00
christos
a6d86f0535
Changes to write ascii timestamps in the when files.
...
Looked into making it 64 bit clean, but it is hopeless.
Added little program to convert from the old timestamp files
into the new ones.
1995-06-03 21:21:48 +00:00
mycroft
4c34be6b52
Clean up deleted files.
1995-03-01 00:00:00 +00:00
cgd
f82d05e1d7
always include libcrypt; it's a dummy if exported...
1994-02-27 23:30:34 +00:00
brezak
2dd2888263
Add HAS_POSIX_DIR to CFLAGS.
1994-01-09 17:14:53 +00:00
brezak
0ba3f69cb7
Change <sys/dir.h> to <dirent.h>
1994-01-03 14:47:23 +00:00
brezak
be6634a0fb
Add __NetBSD__ to __386BSD__ ifdefs
1993-12-06 17:17:37 +00:00
brezak
3e9304df33
Changes from nate for gzip'ed sup
1993-08-04 17:46:14 +00:00
cgd
048389b2ee
make package makefiles deal with "all", "clean", and "cleandir" if they
...
don't already.
1993-07-13 08:12:53 +00:00
brezak
af4554d4e0
Close misbehaving connections instead of exiting.
1993-06-22 17:20:23 +00:00
cgd
eb192ab885
use daemon() to put supfilesrv into daemon mode...
1993-06-05 21:32:15 +00:00
cgd
0b58ac8cc8
make non-use of "EXPORTABLE_SYSTEM=true" do the right thing;
...
before, it didn't really check to see if you really did have the
real crypt.c before making a system with crypt.
1993-05-26 12:19:45 +00:00
brezak
8d3b13729a
Use EXPORTABLE_SYSTEM=true to build sup w/o crypt
1993-05-25 20:00:47 +00:00
brezak
83cb1e2940
Use /var/tmp for NetBSD
1993-05-24 18:57:48 +00:00
mycroft
01d7c3a029
Clean up deleted files.
1993-05-24 17:57:34 +00:00
brezak
256dbd11db
Remove netcrypt.c. Remove unneeded files. Cleanup make.
1993-05-24 17:57:19 +00:00
cgd
0c0fba5509
clean up a bit, and add install target
1993-05-21 15:02:34 +00:00
cgd
a1e510b12f
initial import of CMU's SUP to NetBSD
1993-05-21 14:52:16 +00:00