Commit Graph

2043 Commits

Author SHA1 Message Date
carrel d2f6e52d96 WARNS-ification 1997-10-17 15:44:08 +00:00
lukem 05941d095a WARNSify, cleanup Makefiles 1997-10-17 14:53:18 +00:00
lukem bb2c8b04e6 ntp_getopt returns -1 not EOF, disable WARNS here 1997-10-17 14:34:38 +00:00
lukem 14e91f97ec WARNSify 1997-10-17 14:26:43 +00:00
lukem 31bc9c50ba WARNSify 1997-10-17 13:59:34 +00:00
lukem 8b8cc0b749 minor .Nm cleanup 1997-10-17 13:57:46 +00:00
lukem 2ba239a7a3 getopt returns -1 not EOF 1997-10-17 13:57:02 +00:00
lukem a352e573d5 fix use of unix domain socketname length, and signal error if this
is exceeded. from enami tsugutomo <enami@ba2.so-net.or.jp> [bin/3369]
1997-10-17 13:53:30 +00:00
lukem 47852f1f67 getopt returns -1 not EOF 1997-10-17 13:49:37 +00:00
lukem d2d85e1519 minor .Nm cleanup 1997-10-17 13:46:09 +00:00
lukem 745600d863 WARNSify 1997-10-17 13:36:36 +00:00
lukem eea5ba720b add Makefile.inc to use ../Makefile.inc, and cleanup subdir Makefiles 1997-10-17 13:32:28 +00:00
lukem aa5b34a6f5 call msync() correctly 1997-10-17 13:21:06 +00:00
lukem 8d79db1093 WARNSify 1997-10-17 13:13:40 +00:00
lukem 166448c2dc WARNSify 1997-10-17 13:02:01 +00:00
lukem 0a9c07ac82 getopt returns -1 not EOF 1997-10-17 12:52:25 +00:00
lukem d0f8d5f560 minor .Nm cleanup 1997-10-17 12:49:57 +00:00
lukem bffabae34b WARNSify 1997-10-17 12:40:03 +00:00
lukem 756f7931f0 minor .Nm cleanup 1997-10-17 12:36:36 +00:00
lukem d07d094491 WARNSify 1997-10-17 12:36:30 +00:00
lukem 95ce1aeabe WARNSify, getopt returns -1 not EOF 1997-10-17 12:18:16 +00:00
lukem aef4182020 WARNSify 1997-10-17 12:16:54 +00:00
lukem 2b042c28d8 add Makefile.inc to use ../Makefile.inc, and cleanup subdir Makefiles 1997-10-17 12:07:28 +00:00
lukem e94356b174 fix make -j race condition building lib/ , use ../Makefile.inc for BINDIR 1997-10-17 12:03:36 +00:00
lukem 1dc35d9949 getopt returns -1 not EOF, minor cleanup 1997-10-17 12:01:19 +00:00
lukem c80b353465 WARNSify 1997-10-17 11:53:25 +00:00
lukem 4eb7653054 WARNSify, getopt returns -1 not EOF 1997-10-17 11:46:30 +00:00
lukem cb37f89394 WARNSify 1997-10-17 11:25:37 +00:00
lukem 25a12a5eab WARNSify 1997-10-17 11:18:10 +00:00
lukem bc741e3624 WARNSify 1997-10-17 10:38:25 +00:00
lukem ea649a155d fix race condition when building libcommon.a with make -j, use ../Makefile.inc 1997-10-17 10:38:21 +00:00
lukem c73b1c8336 WARNSify 1997-10-17 10:38:20 +00:00
lukem d85b07eb41 fix race condition when building libcommon.a with make -j, use ../Makefile.inc 1997-10-17 10:38:11 +00:00
lukem 593df3da4c WARNSify 1997-10-17 10:28:39 +00:00
lukem fcfec169df WARNSify 1997-10-17 10:18:36 +00:00
lukem e5436d326b WARNSify, getopt returns -1 not EOF 1997-10-17 10:14:59 +00:00
lukem ffaa76b353 WARNSify, getopt returns -1 not EOF 1997-10-17 09:54:27 +00:00
mrg 1dc6e4f898 merge lite-2 rcsids 1997-10-17 09:04:12 +00:00
lukem 77a8cb6e83 WARNSify 1997-10-17 09:03:53 +00:00
mrg 18b882a973 merge lite-2 1997-10-17 08:49:29 +00:00
enami dd88a36ade Fix typo; `symbolic link' -> `a symbolic link'. 1997-10-17 08:10:22 +00:00
enami 38b64e4e86 Fix typo; `symbolic link' -> `a symbolic link'. 1997-10-17 08:10:10 +00:00
mrg 3bbeacd12c merge lite-2 1997-10-17 08:05:18 +00:00
lukem f680483348 WARNSify, rcsid police 1997-10-17 08:00:23 +00:00
mrg efba0505b4 merge lite-2 1997-10-17 07:35:05 +00:00
mrg b3e461525d 4.4BSD-Lite2 1997-10-17 07:06:38 +00:00
lukem b5229aee10 WARNSify, rcsid police 1997-10-17 07:06:04 +00:00
lukem 03b56f7f94 WARNSify 1997-10-17 06:58:54 +00:00
lukem f738e698e8 WARNSify 1997-10-17 06:58:37 +00:00
mrg c72a99c7d0 merge lite-2 1997-10-17 06:46:02 +00:00
mrg d8bc5f0aa6 merge lite-2 1997-10-17 06:34:19 +00:00
lukem 03e80bf7ea WARNSify (XXX: as best as I could on an i386; could an hp300 user please fix 1997-10-17 06:09:11 +00:00
lukem e67cc03557 minor cleanup, turn off WARNS=1 1997-10-17 05:58:23 +00:00
lukem 065400a1f3 WARNSify, use err/warn, cleanup manpage 1997-10-17 05:47:27 +00:00
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