Commit Graph

2206 Commits

Author SHA1 Message Date
lukem 2fec2a28f5 bugs fixed:
* don't interpret '-' or '|' when a local filename is determined from
  the remote name (i.e, in mget, and in get with only one argument).
  This is implemented using an extra argument to recvrequest().
  Fixes a major security hole.
* clean up memory leak when using globulize()
* clean up a couple of comments
* fix wording in TNF copyright

features added:
* support for TIS fwtk gate-ftp servers:
	* read defaults from $FTPSERVER && $FTPSERVERPORT
	* start in gate-ftp mode if invoked as 'gate-ftp'
	* toggle or set with 'gate [host [port]]'
1997-08-18 10:20:13 +00:00
lukem 049da32c75 * add functionality to `force password change at next login'. to use,
set the pw_change field of the user to -1 (defined in <pwd.h> as
  _PASSWORD_CHGNOW). based on [bin/936] by Simon Gerraty <sjg@quick.com.au>
* clean up for WARNS?=1
1997-08-16 13:50:43 +00:00
fair 80b4ae52e8 fix PR#3278, add some other dates taken from historical sources available on the web 1997-08-14 11:28:07 +00:00
mikel 7b94178928 include <unistd.h> for prototypes and cleanup unused variables; from
Enami Tsugutomo in PR bin/3972.
while I'm here, sort #includes according to KNF.
1997-08-12 06:07:23 +00:00
fair 7493d7febf add shlock 1997-08-10 04:10:27 +00:00
hannken dd99907a60 Get rid of compiler warning:
`warning: `cmp' might be used uninitialized in this function'.
1997-08-08 11:08:10 +00:00
fair 611f2c3b46 program to make lock files for shell scripts 1997-08-06 00:38:11 +00:00
jeremy ebf4cbfe8e Major re-write.
Resolves some outstanding ambiguities and documents the tolerances of uuencode
and uudecode.  [PR/3268]
1997-08-03 08:51:33 +00:00
perry 88a54d8a99 1) RCSid police
2) Add __RCSIDs where apropriate.
3) WARNS=1, and clean up sources for WARNS=1 (including replacement of
   a mktemp with a mkstemp even though it was probably safe...)
4) Some other small cosmetic changes
1997-08-02 21:30:05 +00:00
perry 7de054cd87 add crunch, and re-sort/format SUBDIR 1997-08-02 20:39:48 +00:00
mikel c106897e5e add 'atalk' to list of arguments recognized by -f, minor cleanup 1997-08-01 05:03:14 +00:00
mikel e578379504 minor cleanup 1997-08-01 04:37:36 +00:00
mikel 19dd0c6f4e set WARNS?=1 1997-08-01 04:33:03 +00:00
mikel 2c00d4fdb3 make exit codes match manpage
use <sys/cdefs.h> __COPYRIGHT and __RCSID macros, prototype main()
1997-08-01 04:32:44 +00:00
mikel fdf1615bca fix typo 1997-08-01 04:31:04 +00:00
phil 27984d173e Set appropiate flag when wanting to skip a patch. Fixes only true
bug reported in PR 2215.
1997-07-29 19:49:35 +00:00
augustss f18d1df87b Modernize for new audio features. 1997-07-27 01:28:04 +00:00
perry 9f1056ccbf Major modernization.
1) register variables have been killed, except for the ones in the
   generated skeleton (which should probably also be killed soon).
2) __P(())ified prototypes for all functions.
3) new style __RCSID's, and #include <sys/cdefs.h>'s.
4) all warnings generated with WARNS=1 (i.e. all warnings you get from
   gcc with -Wall -Wstrict-prototypes -Wmissing-prototypes) have been
   fixed, although not always in the best possible way.

in particular on #4, in a couple of places I got "control reaches end
of non-void function" errors, and sadly __dead doesn't seem to really
work, so I inserted a couple of exit() calls in strategic
places. These should be nuked if someone can get __dead to Do The
Right Thing.

There were also a couple of places where "while (foo = bar)" things
cropped up and I didn't do the best conceivable thing, but I usually
did.

These fixes should probably go back to the byacc maintainers.
1997-07-25 16:46:27 +00:00
mikel 0a3628b2c3 initialize variables for gcc -Wall (marked XXX)
compare getopt() result to -1, not EOF
1997-07-25 06:40:32 +00:00
mikel 2aa6b3b7a4 make comparison to NULL explicit (gcc -Wall) 1997-07-25 06:38:02 +00:00
mikel f89e3ed737 include <err.h> and <stdlib.h> for prototypes
give pw_yp() an explicit type
1997-07-25 06:37:27 +00:00
mikel 2a1157114b add prototypes for check_yppasswdd() and pw_yp() 1997-07-25 06:36:02 +00:00
mrg d2be95ea7e update "systat vmstat" documentation to reality. 1997-07-25 01:59:42 +00:00
mrg 9fb5074a33 get at least *part* of "systat vmstat" right... 1997-07-25 01:15:09 +00:00
phil aa70cacc5f Apply patch from PR 1474, checking results of reading from the
bounds file.
1997-07-24 22:45:23 +00:00
phil e807a0729d Changes to close PR3806. (Different than in PR.)
-- don't lock passwd until data is collected.
-- save a copy of original pw data for pw_copy checking
-- Try several times to lock passwd
1997-07-24 08:53:48 +00:00
phil 6907a00e10 Changes to close PR3807. (Different than in PR.)
-- don't lock passwd until data is collected.
-- save a copy of original pw data for pw_copy checking
-- Try several times to lock passwd
1997-07-24 08:53:06 +00:00
thorpej b3fb623d7f Pull SYN_cache_branch down onto the main line. 1997-07-23 21:31:27 +00:00
kleink cce3084228 Add WARNS=1. 1997-07-23 20:09:25 +00:00
kleink db21fa89df Document `-H' flag. 1997-07-23 20:08:53 +00:00
kleink df138b3d94 * __RCSID()/__COPYRIGHT() police.
* Prototypes; fix compiler warnings.
* setlocale(LC_ALL, "") on startup.
* Add XPG4.2 `-H' flag.
1997-07-23 20:08:03 +00:00
mikel 1a90a52019 add explicit return types and prototypes for local functions
use __COPYRIGHT and __RCSID macros, fix other gcc -Wall warnings
1997-07-23 05:53:34 +00:00
mikel 3489c99115 RCSid police 1997-07-23 05:51:08 +00:00
mikel 7194732677 nuke duplicate RCSid 1997-07-23 05:47:45 +00:00
mikel 89d7a04e6c set WARNS?=1, cleanup 1997-07-23 05:44:09 +00:00
mikel 463fe05164 add explicit return types and prototypes for local functions
use __COPYRIGHT and __RCSID macros, fix other gcc -Wall warnings
1997-07-23 05:42:55 +00:00
mikel ecebe74498 provide explicit return type for getpoints(), use __RCSID macro 1997-07-23 05:40:20 +00:00
mikel de46de4c67 nuke duplicate RCSid, prototype getpoints() 1997-07-23 05:37:59 +00:00
mikel 54bb32d1c5 nuke duplicate RCSid 1997-07-23 05:36:34 +00:00
mrg bda99ff7a0 find "namespace.h" ... 1997-07-23 03:10:54 +00:00
mrg 64d6e24a6b find "namespace.h" ... 1997-07-22 11:38:33 +00:00
cgd 2e906b2aaf quote ${NM} so that multi-word values work right (for some defn of "right") 1997-07-22 05:21:03 +00:00
cgd dc7e4efc1d quote ${CC} so that multi-word values work right (for some defn of "right") 1997-07-22 05:20:06 +00:00
phil 992579779c Add input files to dependency list for ioctl.c build. 1997-07-21 19:29:58 +00:00
lukem 609496986e fix compile on alpha:
* cast all %qd printfs to (long long) [inspired by billc@warped.net]
* replace sscanf %qd with strtoq() et al
1997-07-21 14:03:48 +00:00
mrg 5941399374 - some KNF.
- use __RCSID().
- WARNS=1
1997-07-21 07:04:56 +00:00
mrg cd53f1ab76 WARNS?=1 1997-07-21 07:03:52 +00:00
mrg 1e987690a8 - some KNF.
- use __RCSID().
- WARNS=1
- use swapctl(2), rather than grovelling KVM.
1997-07-21 07:03:15 +00:00
cgd b41192602c fix a couple of bogons in the changes to the sed regexps in my previous
commit.  ("Works Great!!" "More Testing!!!")
1997-07-21 05:37:32 +00:00
cgd dab9e38937 find the compiler more correctly: if user has set 'CC' use it but expand
it to a full path using the user's path, before setting the path used by
the script.  If it can't be found, try using the standard path used by the
script to find it (/bin:/usr/bin:/usr/ucb), and if it still can't be
found, exit.  If user hasn't set CC, try to use cc, again searched for
via their path, then via the standard path.
Also, clean up regexps used to post-process ${CC} -M output, so that
they work on a wider variety of compilers.
1997-07-20 23:27:09 +00:00