Up to [local] / src / usr.bin / sup / src
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.39, Mon Oct 18 20:54:00 2010 UTC (13 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: HEAD
Changes since 1.38: +1 -1 lines
FILE REMOVED
sup is no longer used. reminded by pirofti and jmc
Revision 1.38 / (download) - annotate - [select for diffs], Fri Sep 14 14:29:20 2007 UTC (16 years, 9 months ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7,
OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)
remove some warnings: unused variable `variable' `variable' might be used uninitialized in this function ok gilles@ ray@
Revision 1.37 / (download) - annotate - [select for diffs], Tue Sep 11 15:47:17 2007 UTC (16 years, 9 months ago) by gilles
Branch: MAIN
Changes since 1.36: +10 -17 lines
Diff to previous 1.36 (colored)
use strcspn to properly overwrite '\n' in fgets returned buffer ok pyr@, ray@, millert@, moritz@, chl@
Revision 1.36 / (download) - annotate - [select for diffs], Sat Mar 4 16:18:06 2006 UTC (18 years, 3 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)
the the
Revision 1.35 / (download) - annotate - [select for diffs], Mon Jul 4 01:54:10 2005 UTC (18 years, 11 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE,
OPENBSD_3_9,
OPENBSD_3_8_BASE,
OPENBSD_3_8
Changes since 1.34: +9 -17 lines
Diff to previous 1.34 (colored)
make these use setres[ug]id for simple privilege dropping; ok deraadt@ millert@ moritz@
Revision 1.34 / (download) - annotate - [select for diffs], Mon May 31 15:48:26 2004 UTC (20 years ago) by pedro
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.33: +1 -3 lines
Diff to previous 1.33 (colored)
zap unused variables, ok beck@
Revision 1.33 / (download) - annotate - [select for diffs], Fri Jan 23 03:48:43 2004 UTC (20 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE,
OPENBSD_3_5
Changes since 1.32: +2 -4 lines
Diff to previous 1.32 (colored)
Use closefrom(); ok millert tedu
Revision 1.31.2.1 / (download) - annotate - [select for diffs], Wed Sep 24 19:05:59 2003 UTC (20 years, 8 months ago) by brad
Branch: OPENBSD_3_3
Changes since 1.31: +47 -12 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)
MFC: Fixes by tedu@ and beck@ fp leak. from Patrick Latifi. and millert's sup fix, tested here on client and server. ok millert@
Revision 1.30.2.1 / (download) - annotate - [select for diffs], Wed Sep 24 18:59:11 2003 UTC (20 years, 8 months ago) by brad
Branch: OPENBSD_3_2
Changes since 1.30: +47 -12 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)
MFC: Fixes by tedu@ and beck@ fp leak. from Patrick Latifi. and millert's sup fix, tested here on client and server. ok millert@
Revision 1.32 / (download) - annotate - [select for diffs], Thu Sep 4 03:24:07 2003 UTC (20 years, 9 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.31: +47 -12 lines
Diff to previous 1.31 (colored)
millert's sup fix, tested here on client and server. committing in absentia for todd, ok beck@
Revision 1.31 / (download) - annotate - [select for diffs], Mon Mar 10 03:53:32 2003 UTC (21 years, 3 months ago) by david
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE
Branch point for: OPENBSD_3_3
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)
spelling fixes ok millert@
Revision 1.30 / (download) - annotate - [select for diffs], Sun Jun 23 03:07:22 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE
Branch point for: OPENBSD_3_2
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)
uid_t and gid_t are unsigned
Revision 1.29 / (download) - annotate - [select for diffs], Wed Jun 12 06:07:16 2002 UTC (22 years ago) by mpech
Branch: MAIN
Changes since 1.28: +6 -5 lines
Diff to previous 1.28 (colored)
a real pid_t cleanup. espie@ ok for make/, deraadt@ one extra eye, millert@ ok
Revision 1.28 / (download) - annotate - [select for diffs], Tue Feb 19 19:39:39 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE,
OPENBSD_3_1
Changes since 1.27: +1 -18 lines
Diff to previous 1.27 (colored)
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Revision 1.27 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:54 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.26: +30 -30 lines
Diff to previous 1.26 (colored)
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Revision 1.26 / (download) - annotate - [select for diffs], Thu Aug 23 19:31:28 2001 UTC (22 years, 9 months ago) by camield
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE,
OPENBSD_3_0
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)
end request with 0, not NULL
Revision 1.25 / (download) - annotate - [select for diffs], Sun Aug 12 12:03:03 2001 UTC (22 years, 10 months ago) by heko
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)
#(endif|else) foo is incorrect, make it #endif /* foo */ deraadt@ ok
Revision 1.24 / (download) - annotate - [select for diffs], Mon May 7 19:26:02 2001 UTC (23 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.23: +1 -2 lines
Diff to previous 1.23 (colored)
remove waitpid-related XXX's -- this is OK
Revision 1.23 / (download) - annotate - [select for diffs], Mon May 7 02:08:02 2001 UTC (23 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)
Use a smaller buffer in fmttime() since the date string is of a known fixed size.
Revision 1.22 / (download) - annotate - [select for diffs], Fri May 4 22:16:17 2001 UTC (23 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.21: +680 -601 lines
Diff to previous 1.21 (colored)
o kill register 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
Revision 1.21 / (download) - annotate - [select for diffs], Wed May 2 22:56:54 2001 UTC (23 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.20: +147 -19 lines
Diff to previous 1.20 (colored)
Sync with NetBSD. Notable changes: 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.
Revision 1.20 / (download) - annotate - [select for diffs], Sun Apr 29 18:16:19 2001 UTC (23 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.19: +8 -8 lines
Diff to previous 1.19 (colored)
Use S_ISXXX macros where possible instead of doing this by hand Noticed while diffing against NetBSD version
Revision 1.19 / (download) - annotate - [select for diffs], Fri Mar 9 03:19:51 2001 UTC (23 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE,
OPENBSD_2_9
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)
exit(-#) is wrong
Revision 1.18 / (download) - annotate - [select for diffs], Sun Aug 20 18:42:42 2000 UTC (23 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE,
OPENBSD_2_8
Changes since 1.17: +10 -1 lines
Diff to previous 1.17 (colored)
Add calls to setusercontext() and login_get*(). We basically call setusercontext() in most places where previously we did a setlogin(). Add default login.conf file and put root in the "daemon" login class.
Revision 1.17 / (download) - annotate - [select for diffs], Tue Feb 1 03:23:40 2000 UTC (24 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE,
OPENBSD_2_7
Changes since 1.16: +1 -2 lines
Diff to previous 1.16 (colored)
no need to extern int errno if errno.h is included
Revision 1.16 / (download) - annotate - [select for diffs], Fri Jan 21 00:26:48 2000 UTC (24 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)
Deal with getcwd() returning NULL. This code is not currently 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>
Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 3 16:20:38 1998 UTC (26 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE,
OPENBSD_2_6,
OPENBSD_2_5_BASE,
OPENBSD_2_5,
OPENBSD_2_4_BASE,
OPENBSD_2_4
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)
zero sigaction before use
Revision 1.14 / (download) - annotate - [select for diffs], Mon May 18 19:13:39 1998 UTC (26 years ago) by deraadt
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)
readlink len-1
Revision 1.13 / (download) - annotate - [select for diffs], Mon Nov 17 08:54:05 1997 UTC (26 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE,
OPENBSD_2_3
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)
match nfs3 and regular nfs; christos
Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 11 23:34:21 1997 UTC (26 years, 8 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE,
OPENBSD_2_2
Changes since 1.11: +30 -3 lines
Diff to previous 1.11 (colored)
-Kludges for SunOS 5 portablility, -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.
Revision 1.11 / (download) - annotate - [select for diffs], Tue Sep 16 11:01:23 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +10 -5 lines
Diff to previous 1.10 (colored)
strcpy whacking; ci.c and expand.c need more work
Revision 1.10 / (download) - annotate - [select for diffs], Tue Sep 16 10:42:59 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +28 -21 lines
Diff to previous 1.9 (colored)
snprintf this thing
Revision 1.9 / (download) - annotate - [select for diffs], Mon Sep 8 23:59:43 1997 UTC (26 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)
Use setlogin(2).
Revision 1.8 / (download) - annotate - [select for diffs], Fri Jul 25 21:05:42 1997 UTC (26 years, 10 months ago) by mickey
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)
#if __STDC__ --> #ifdef __STDC__
Revision 1.7 / (download) - annotate - [select for diffs], Tue Apr 1 07:35:43 1997 UTC (27 years, 2 months ago) by todd
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE,
OPENBSD_2_1
Changes since 1.6: +185 -213 lines
Diff to previous 1.6 (colored)
This merges in the latest NetBSD sup source. - 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!
Revision 1.6 / (download) - annotate - [select for diffs], Fri Jan 17 07:18:10 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.5: +16 -13 lines
Diff to previous 1.5 (colored)
more r?index -> strr?chr
Revision 1.5 / (download) - annotate - [select for diffs], Sun Dec 22 03:26:05 1996 UTC (27 years, 5 months ago) by tholo
Branch: MAIN
Changes since 1.4: +12 -1 lines
Diff to previous 1.4 (colored)
Deal with _POSIX_SAVED_IDS when relinquishing privileges
Revision 1.4 / (download) - annotate - [select for diffs], Wed Jul 31 11:11:31 1996 UTC (27 years, 10 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE,
OPENBSD_2_0
Changes since 1.3: +12 -10 lines
Diff to previous 1.3 (colored)
Better use time_t instead of long when dealing with times
Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 26 05:39:54 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +5 -0 lines
Diff to previous 1.2 (colored)
rcsid
Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 10 20:45:35 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.1: +6 -0 lines
Diff to previous 1.1 (colored)
hack: print hostname connection failed with
Revision 1.1 / (download) - annotate - [select for diffs], Sat Dec 16 11:46:59 1995 UTC (28 years, 6 months ago) by deraadt
Branch: MAIN
add sup to the tree