summaryrefslogtreecommitdiff
path: root/usr.bin/sup
AgeCommit message (Collapse)Author
2001-05-15Add missing memset() from one of the select() fixes. Also free existingTodd C. Miller
readfds if malloc/realloc fails.
2001-05-07remove waitpid-related XXX's -- this is OKTodd C. Miller
2001-05-07Avoid excessive malloc/free for select in readdata()Todd C. Miller
2001-05-07Use a smaller buffer in fmttime() since the date string is of aTodd C. Miller
known fixed size.
2001-05-07Fix select(2) usage.Todd C. Miller
2001-05-05Fix Makefile.sunos5.gcc so that it builds sup correctly on Solaris 8Todd C. Miller
Fix some -Wall found on Solaris Fix some uid_t/gid_t stuff I missed before
2001-05-05Solaris has strerror()Todd C. Miller
Remove unneeded #include <util.h> and -lutil
2001-05-04o kill registerTodd C. Miller
o lots of KNF o passes -Wall o fix some [ug]id_t vs. int issues o use strlcpy/strlcat in favor of strncpy/strncat o use mem* routines everywhere instead of old b* ones o marked several questionable things for later fixing o kill ci.c and cvt.c -- we don't use them o kill read_line.c since it requires fgetln() (bad for portability) o kill salloc.c since it is the same as strup() o Replaced some #ifdef __OpenBSD__ with better tests o remaining problems: malloc return values are rarely checked, select misuse
2001-05-02Sync with NetBSD. Notable changes:Todd C. Miller
o Add libwrap support to supfilesrv, conditioned by #ifdef LIBWRAP (on by default). <bouyer@netbsd.org> o Renamed '-l' (the 'live' mode) to '-d' and '-l' is now used to enable logging of successfull connections. <bouyer@netbsd.org> o Don't botch varargs: the are not always an array of void * in the stack... Write a separate function to convert a list of function parameters to explain why execv failed. <christos@netbsd.org> o When in compress mode, don't overwrite the destination file directly, write a temp file and use rename when it is done. (From James Mathiesen <james@deshaw.com>) o Rename errno variable to error to avoid collision with errno.h and remove explicit extern of errno (we get it from errno.h) <mycroft@netbsd.org> o Cleanup unsigned char vs. char o Add -u flag, that prevents sup from attempting to restore a and m times on the received files. o Replace the provided read_line function with calls to the fparseln function in libutil. Maintain compatibility on machines without fparseln through the NEED_READ_LINE define. o Rename login() to suplogin() to avoid name collition in util.h o If rmdir() fails, chmod the path to have r/w/x perms and run "rm -rf" o avoid last.temp filename collision by using rel-suffix o When creating directories, make sure you remove previous non-directories before doing so, otherwise sup fails. o Add -q flag to supscan for quiet operation.
2001-04-29Zero a buffer prior to passing it to readlink() as readlink()Todd C. Miller
does not append a NUL itself.
2001-04-29spelingTodd C. Miller
2001-04-29labels should precede actual code, not braces; from NetBSDTodd C. Miller
2001-04-29Add a bunch of old revision history comments that we are missing toTodd C. Miller
make diffing easier. No code changes...
2001-04-29include string.h not strings.hTodd C. Miller
2001-04-29Use S_ISXXX macros where possible instead of doing this by handTodd C. Miller
Noticed while diffing against NetBSD version
2001-04-29Add comment chars to (or just remove) bare words after #endif/#else for ANSI.Todd C. Miller
Noticed while diffing against NetBSD version
2001-04-29If errmsg() is passed a negative argument return strerror(errno)Todd C. Miller
Noticed while diffing against NetBSD version
2001-04-20typoMarc Espie
2001-03-09exit(-#) is wrongTheo de Raadt
2000-08-20Add calls to setusercontext() and login_get*(). We basically callTodd C. Miller
setusercontext() in most places where previously we did a setlogin(). Add default login.conf file and put root in the "daemon" login class.
2000-08-02$HOME paranoia: never use getenv("HOME") w/o checking for NULL and non-zeroTodd C. Miller
2000-06-29use %s with syslogTodd C. Miller
2000-03-14Suffix "i.e." and "e.g." with a comma. Just another really picky man pageAaron Campbell
commit, as we want our documentation to be as consistently formatted as possible (it's getting there :-)).
2000-02-01no need to extern int errno if errno.h is includedTheo de Raadt
2000-01-21Deal with getcwd() returning NULL. This code is not currentlyTodd C. Miller
compiled but dixing it now means that it won't get flagged again in a future audit. Noted by Oleg Safiullin <form@vell.nsc.ru>
1999-09-23Typo fixes.Alex Feldman
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1999-05-12grammar police: do not hyphenate compound words that act as adjectives if theAaron Campbell
first word ends in -ly i.e., fully-qualified, newly-created, globally-visible, etc. are wrong
1999-01-09behave reasonably if malloc failsTodd C. Miller
1998-09-07More man page fixes. Particularly fix uses of it's/its, affect/effect,Aaron Campbell
then/than and such. Other miscellaneous problems fixed across these source files.
1998-09-05more man page repairs; aaron@ug.cs.dal.caTheo de Raadt
1998-09-01more man page fixes; aaron@ug.cs.dal.caTheo de Raadt
1998-08-29man page repairs; aaron@ug.cs.dal.caTheo de Raadt
1998-06-03zero sigaction before useTheo de Raadt
1998-05-18readlink len-1Theo de Raadt
1997-11-17match nfs3 and regular nfs; christosTheo de Raadt
1997-10-12 ftruncate the lock file for supfilesrv -O before writing pid into it.Bob Beck
1997-10-12 Documentation for -O switch on supfilesrv.Bob Beck
1997-10-11-Ooops. Didn't get this in last time.Bob Beck
1997-10-11 -Kludges for SunOS 5 portablility,Bob Beck
-Added -O option to supfilesrv. -O lockdir make serving process lock file in lockdir for each connecting ip address. Will refuse a second connection from a host it's already serving a request for.
1997-09-16Possible buf oflow, from Theo.Todd C. Miller
1997-09-16one more strcpy after thisTheo de Raadt
1997-09-16strcpy whacking; ci.c and expand.c need more workTheo de Raadt
1997-09-16snprintf this thingTheo de Raadt
1997-09-08Use setlogin(2).Todd C. Miller
1997-08-31solaris changes; beck@obtuseTheo de Raadt
1997-08-18#include <string.h> not <strings.h> -- Yes, I'm a weanie...Todd C. Miller
1997-07-28uniqify names more; s.k.stevens@ic.ac.ukTheo de Raadt
1997-07-25#if __STDC__ --> #ifdef __STDC__Michael Shalayeff
1997-04-01This merges in the latest NetBSD sup source.Todd T. Fries
- removed $Log: ...$ tags to not waste space in the repository - now doesn't segfault on the alpha! Note: To compile sup on systems other than *BSD, you'll need a copy of vis.c, vis.h, daemon.c, and sys/cdefs.h. At least the first two (for OSF/1). From NetBSD changelog description (for credit where due): .... 1996/12/23 19:42:05 christos - add missing prototypes. - fix function call inconsistencies - fix int <-> long and pointer conversions It should run now on 64 bit machines... .... 1996/12/31 18:08:00 christos 64 bit patches (mostly long -> time_t) from Matthew Jacob (?) sup now works on the alpha!