Commit Graph

1939 Commits

Author SHA1 Message Date
mrg 4c8ecdc3eb oops, didn't mean part of last merge. 1997-10-17 05:40:16 +00:00
mrg 68136a9566 merge lite-2 1997-10-17 05:37:32 +00:00
lukem e4e7016851 WARNSify, use err/warn, use opendisk 1997-10-17 05:31:02 +00:00
mrg 590bf19cde merge lite-2 1997-10-17 05:24:29 +00:00
mrg 9463544113 merge lite-2 1997-10-17 05:06:40 +00:00
lukem e477b94d93 remove unnecessary externs 1997-10-17 04:57:31 +00:00
lukem e38303c1b4 sort SUBDIR list 1997-10-17 04:54:33 +00:00
lukem 13a5e774a4 remove WARNS?=1 - it's inherited 1997-10-17 04:53:19 +00:00
lukem 955c39c7ef minor cleanup 1997-10-17 04:31:55 +00:00
lukem a8a5cfb5e0 WARNSify, deprecate bcmp/perror et al in favour of memcmp/err* et al 1997-10-17 04:24:20 +00:00
lukem 699d25a64e WARNSify, deprecate bcmp/perror et al in favour of memcmp/err* et al 1997-10-17 02:25:02 +00:00
lukem 328c1f1d90 WARNSify 1997-10-17 00:16:55 +00:00
lukem a210b9277f getopt returns -1 not EOF, deprecate register 1997-10-17 00:12:51 +00:00
lukem 0a469c567a WARNSify, getopt returns -1 not EOF 1997-10-17 00:12:49 +00:00
lukem cdede3a245 getopt returns -1 not EOF, deprecate register 1997-10-17 00:12:46 +00:00
lukem 2bc4f43c42 WARNSify, getopt returns -1 not EOF 1997-10-17 00:12:43 +00:00
lukem ca32e63825 getopt returns -1 not EOF 1997-10-17 00:10:42 +00:00
lukem df4958aa0b getopt returns -1 not EOF 1997-10-17 00:07:21 +00:00
lukem 409801916f WARNSify 1997-10-16 23:46:38 +00:00
lukem 95dff5caaf WARNSify 1997-10-16 23:41:32 +00:00
lukem 3fbb7cea25 WARNSify 1997-10-16 23:39:17 +00:00
christos c36a502364 msync needs a third argument. 1997-10-16 23:32:27 +00:00
lukem 07ed891089 - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
1997-10-16 23:24:50 +00:00
lukem b3f8f59032 - WARNsify
- KNFify (a bit)
- use int32_t & u_int32_t instead of long and u_long
- clean up man pages a bit
1997-10-16 23:24:18 +00:00
mikel 0ed58c18f2 fix typo in CLEANFILES 1997-10-16 08:26:50 +00:00
lukem c518f62858 - compile common code once (into libcommon.a), and link that in.
cut's compilation time by half!
- build a common version.c in libcommon.a
- don't build version.h - nothing uses it
- comment out the ifdef INFO and -DINFO stuff - it's always compiled in
- XXX: don't compile mopprobe with -DNODL (which actually changes the
  compilation of stuff in common/*). nothing else does this, and it
  meant that mopprobe would have had different behaviour. if this behaviour
  is desired, a workaround can be put in place
1997-10-16 07:36:12 +00:00
lukem 29689d8440 clean up previous 1997-10-16 05:22:37 +00:00
lukem f0923775df fix race condition when building libamu with make -j 1997-10-16 05:18:41 +00:00
lukem 4d10189f4c fix race condition when building libcommon with make -j 1997-10-16 05:10:14 +00:00
hubertf ca6157bdca - document $PKG_PATH
- use -v on pkg_add for dependent packages (forgot on last commit)
 - most important: do string-magic on the right variable when trying
   to find dependent packages on the local disk (i.e. package given as
   filename, not URL)
1997-10-16 00:55:01 +00:00
hubertf 508ee08a34 Second part of intrgration of FreeBSD pkg_install as of 971013.
This patch adds @option preserve and handling for -s (SrcDir)
option.
1997-10-16 00:50:20 +00:00
hubertf d0245e3952 First cut on importing pkg_install as of FreeBSD 971013:
- warn()/err() instead of whinge()/barf()
 - Update RCS Id strings
 - Update manpages (mostly)
1997-10-16 00:31:32 +00:00
lukem 7cb9d0d79c database routines:
- rename OPTDB to OPTIMIZE_DB
- if OPTIMIZE_DB, in ypdb_open(), close a database if the open failed
  with ENFILE or EMFILE [from openbsd].
- because of the above, don't bother checking first if any FDs are
  available (with open("/", RDONLY) - it's a superfluous check.
- ensure that *map_info is set if a database was a cached open -
  without this fix OPTIMIZE_DB didn't work too well...
- enable OPTIMIZE_DB by default - should speed up lookups

secure map support:
- add ypdb_secure(), which returns non-zero if the map has the YP_SECURE
  private key set (which makedbm(8) -s adds) [from openbsd]
- modify various functions to check if a map is secure, and if so,
  refuse to serve information to clients not requesting from an
  IPPORT_RESERVED port [from openbsd]
- ensure that domainnames and map names are valid (don't contain
  "/"'s, aren't too long, etc) [idea from openbsd, but using our
  _yp_invalid_domain() et al, which does more checking.]

misc:
- add rcsid's
- implement _yp_invalid_map() (complements _yp_invalid_domain() in
  libc - eventually _yp_invalid_map() may move to libc...)
- use %#x instead of 0x%x in debug log messages
1997-10-15 05:01:07 +00:00
lukem b252d2a436 - major cleanup of Makefile.yp to use modern make(1) variables, and
follow our formatting convetions.
- add support for aliases, amd.home, master.passwd and netgroup maps
  [initially from openbsd, reworked as above]
- if INSECURE != "yes" then the passwd.by* maps will not contain the
  encrypted version of the passwd - privileged clients will request
  info from the master.passwd.by* maps.
  FreeBSD originally implemented this, and & OpenBSD supports it too.
  [from openbsd].

  By default, passwd maps are INSECURE, but in a *BSD-only environment,
  this could be disabled to allow for a [slightly] higher degree of
  security from non-root users...
1997-10-15 03:01:57 +00:00
mellon 8e6f88f680 Fix command-line argument processing 1997-10-14 20:38:09 +00:00
cjs 808e7bd9b8 Add hack to avoid gcc warnings. 1997-10-14 05:17:35 +00:00
cjs 5e411157a1 Ugly hack to make this compile without warnings on alpha. 1997-10-13 20:45:40 +00:00
cjs 83c227ec28 If you're going to pass a u_char as an int, cast it first. 1997-10-13 20:44:09 +00:00
lukem ec79495f83 add rcsid 1997-10-13 07:44:01 +00:00
lukem 16199f1de9 don't use home-grown ether_ntoa() - ether_toa(3) in libc works fine... 1997-10-13 07:41:48 +00:00
lukem 88b87b1582 add rcsid 1997-10-13 07:38:09 +00:00
lukem 7eaa3f736a add rcsid 1997-10-13 04:00:27 +00:00
lukem 2a43cbe64c add rcsid 1997-10-13 03:51:58 +00:00
lukem 9e8a6cf527 s/LINT/lint 1997-10-13 03:48:49 +00:00
lukem 21504c46eb - ignore trailing NUL in database key/value pairs (which sendmail's
aliases.db has)
- add rcsid
1997-10-13 03:47:07 +00:00
lukem 652dc94093 - hack ypdb_open() to try the standard hash (for sendmail's aliases.db)
if the initial open fails with EFTYPE. if a different database
  format is found to be more efficient, just add the code to open it
  prior to that of the other formats; this maintains backward
  compatibility with older databases whilst providing new functionality...
- add rcsid's
1997-10-13 03:42:27 +00:00
lukem 64718e58ff add rcsid 1997-10-13 03:15:30 +00:00
veego 066829337c Only install the available m4 files. 1997-10-12 19:14:27 +00:00
mycroft ccacc504e5 Make this work again, and add ethers to the list of recursive targets. 1997-10-12 11:53:11 +00:00
hubertf e10ebcabe2 pass the "-v"-switch on pkg_add to any pkg_add-calls
made for dependent packages
1997-10-11 22:25:16 +00:00