aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Just when you thought it was safe...Bill Paul1995-08-071-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - getnetgrent.c: address some NIS compatibility problems. We really need to use the netgroup.byuser and netgroup.byhost maps to speed up innetgr() when using NIS. Also, change the NIS interaction in the following way: If /etc/netgroup does not exist or is empty (or contains only the NIS '+' token), we now use NIS exclusively. This lets us use the 'reverse netgroup' maps and is more or less the behavior of other platforms. If /etc/netgroup exists and contains local netgroup data (but no '+'). we use only lthe local stuff and ignore NIS. If /etc/netgroup exists and contains both local data and the '+', we use the local data nd the netgroup map as a single combined database (which, unfortunately, can be slow when the netgroup database is large). This is what we have been doing up until now. Head off a potential NULL pointer dereference in the old innetgr() matching code. Also fix the way the NIS netgroup map is incorporated into things: adding the '+' is supposed to make it seem as though the netgroup database is 'inserted' wherever the '+' is placed. We didn't quite do it that way before. (The NetBSD people apparently use a real, honest-to-gosh, netgroup.db database that works just like the password database. This is actually a neat idea since netgroups is the sort of thing that can really benefit from having multi-key search capability, particularly since reverse lookups require more than a trivial amount of processing. Should we do something like this too?) - netgroup.5: document all this stuff. - rcmd.c: some sleuthing with some test programs linked with my own version of innetgr() has revealed that SunOS always passes the NIS domain name to innetgr() in the 'domain' argument. We might as well do the same (if YP is defined). - ether_addr.c: also fix the NIS interaction so that placing the '+' token in the /etc/ethers file makes it seem like the NIS ethers data is 'inserted' at that point. (Chances are nobody will notice the effect of this change, which is just te way I like it. :) Notes: svn path=/head/; revision=9978
* Remove the comment about the broken getopts(1) in our /bin/sh.Joerg Wunsch1995-08-061-6/+1
| | | | Notes: svn path=/head/; revision=9975
* Change `install' to `${INSTALL}' so that default install flags can beBruce Evans1995-08-063-4/+4
| | | | | | | | | | specified in the top level Makefiles. Previously I missed dozens of Makefiles that skip the install after using `cmp -s' to decide that the install isn't necessary. Notes: svn path=/head/; revision=9970
* Make "out of space in ${PKG_TMPDIR}" handling a bit more robust.Jordan K. Hubbard1995-08-062-7/+8
| | | | | | | Print the right thing, do the right thing. Back to you, Satoshi! Notes: svn path=/head/; revision=9953
* Don't attempt to install rtprio.2 from here. It has moved to lib/libc/sys.Bruce Evans1995-08-061-2/+1
| | | | Notes: svn path=/head/; revision=9951
* Close:Jordan K. Hubbard1995-08-051-0/+1
| | | | | | | | | | >Number: 656 >Category: docs >Synopsis: -v is not fully documented in portmap.8 Submitted by: Mike Grupenhoff <kashmir@umiacs.umd.edu> Notes: svn path=/head/; revision=9948
* Update timezone compiler and dumper to understand the new EC rules.Garrett Wollman1995-08-053-184/+251
| | | | Notes: svn path=/head/; revision=9937
* Add missing ospeed initializationAndrey A. Chernov1995-08-041-3/+4
| | | | Notes: svn path=/head/; revision=9895
* Remove useless -lftp arguments from Makefiles.Jordan K. Hubbard1995-08-043-9/+0
| | | | | | | Suggested by: ache Notes: svn path=/head/; revision=9894
* Make arp command actually behave as documented with the addition of a -fJordan K. Hubbard1995-08-031-1/+6
| | | | | | | | | | | | flag. The getopt handling in here is actually pretty bogus (not Phil's fault - it's original sin) but the general approach is working so I'm not going to break it. Some small tweaks of my own to add error checking to what was originally submitted. Strange how nobody noticed that the flag was documented but completely missing from the code before! [jkh]. Submitted by: Phil Taylor <phil@zipmail.co.uk> Notes: svn path=/head/; revision=9874
* Round this out. Now seems to transfer packages properly over ftpJordan K. Hubbard1995-08-011-14/+18
| | | | | | | | as it was supposed to. PKG_PATH more sorely needed than ever now.. Hmmmm. Notes: svn path=/head/; revision=9838
* Argh! I hate my life! I can't seem to do anything right here today.Jordan K. Hubbard1995-08-012-9/+6
| | | | | | | This should restore functionality to the pkg_install suite. Notes: svn path=/head/; revision=9837
* The other day someone brought me an old Apple Laserwriter II with a serialBill Paul1995-07-312-0/+4
| | | | | | | | | | interface set at 57600 baud, and I found out the hard way that lpd doesn't know about speeds greater than 38400, even though <sys/ttydev.h> also permits 57600 and 115200 baud. Fix this by adding B57600 and B115200 to the 'bauds' table. (The Apple printer worked properly once I did this, BTW. :) Notes: svn path=/head/; revision=9821
* Sync this up with ftp.c.Satoshi Asami1995-07-311-3/+0
| | | | Notes: svn path=/head/; revision=9808
* Remove dependency on sysinstall.Jordan K. Hubbard1995-07-311-14/+1
| | | | Notes: svn path=/head/; revision=9807
* Add ftp.c to makefile - that might make it work better. Sheesh!Jordan K. Hubbard1995-07-311-1/+1
| | | | Notes: svn path=/head/; revision=9806
* Typo in log message : errros -> errorsGary Palmer1995-07-301-2/+2
| | | | Notes: svn path=/head/; revision=9797
* Change the environment variable this looks for from FTP_PASSIVE toJordan K. Hubbard1995-07-301-3/+2
| | | | | | | | | | FTP_PASSIVE_MODE. It would be really nice if we could standardise on this name so that all tools (like ncftp) that offer passive/active ftp selection would work seamlessly with one user environment variable setting. Notes: svn path=/head/; revision=9789
* Document how to get pkg_add to use PASSIVE MODE ftp in such transfers.Jordan K. Hubbard1995-07-301-0/+12
| | | | Notes: svn path=/head/; revision=9788
* Totally eliminate the dependency on libftp (which will be removed from theJordan K. Hubbard1995-07-303-50/+505
| | | | | | | | FreeBSD source tree) and switch to the internal ftp routines developed by Poul-Henning and used in sysinstall. Notes: svn path=/head/; revision=9787
* o Fix PR# bin/643 - always set "where_to" properly.Jordan K. Hubbard1995-07-302-5/+3
| | | | | | | o Nuke dependence on libftp - it's about to die! Notes: svn path=/head/; revision=9786
* The default for temporary directory is /var/tmp, not /tmp.Satoshi Asami1995-07-301-1/+1
| | | | Notes: svn path=/head/; revision=9784
* You can run pkg_info everywhere expect /var/db/pkg directory :-)Andrey A. Chernov1995-07-303-6/+16
| | | | | | | | | Running there you got any kind of strange errors from tar caused by treating directories as tar files! Fix it by adding new isfile(name) (check for reg. files) to simple fexists(name) calls. Notes: svn path=/head/; revision=9782
* If some files lost in /var/db/pkg/<port>/ after system crash f.e.,Andrey A. Chernov1995-07-301-7/+7
| | | | | | | | | | | | pkg_manage silently dumps core, pkg_info claims about them to stderr, which makes very difficult to find what directory cause it via tons of pkg_info -a output. I found solution which covers both variants, now pkg_info claims about missing files to stdout among valid output with ERROR: prefix. It heals pkg_manage to not dump core and makes easy to find errors in pkg_info -a output by simple /ERROR 'more' command. Notes: svn path=/head/; revision=9781
* Fix coredump for -v flagAndrey A. Chernov1995-07-281-2/+2
| | | | | | | | Submitted by: Thomas Gellekum <thomas@ghpc8.ihf.rwth-aachen.de> Obtained from: Notes: svn path=/head/; revision=9743
* main.c:Bill Paul1995-07-252-24/+9
| | | | | | | | | | | | | - use daemon() to daemonify ourselves - the 'Usage' printf() was missing an argument - remove declaration of rindex and #include <string.h> instead bootparam.c: - get rid of local declarations of YP functions and include headers from /usr/include/rpcsvc instead. Notes: svn path=/head/; revision=9718
* Change `install' to `${INSTALL}' so that default install flags can beBruce Evans1995-07-2512-18/+18
| | | | | | | specified in the top level Makefiles. Notes: svn path=/head/; revision=9701
* Change `install' to `${INSTALL}' as usual.Bruce Evans1995-07-251-4/+1
| | | | | | | | | | Nuke potential for mkdir'ing /usr/lib. Don't move the the target to a backup file before installing it. This will defeat `install -C'. Notes: svn path=/head/; revision=9699
* Delete the recently introduced NOOBJ. The obj directory will soon beBruce Evans1995-07-241-1/+0
| | | | | | | used to hold gzipped man pages. Notes: svn path=/head/; revision=9695
* Use p->fts_level instead of unsuccessfully trying to keep track of theBruce Evans1995-07-241-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | level ourself. We failed for unreadable directories. E.g., `mtree -d -f /etc/mtree/BSD.usr.dist -p /usr' run by `nobody' was confused after it couldn't descend into /usr/games/hide. It looked for /usr/include and subsequent directories in /usr/games. Don't search for `extra' files when the spec depth is less than the fts level. The spec depth isn't incremented for leaf nodes because that would give a NULL level pointer and make it inconvenient to go back to the parent level. Leaf nodes are built for directories that are empty in the spec. Since they are empty in the spec, all files in them are extra. The search looked for files one spec level too high, so for `mtree -d -f /etc/mtree/BSD.usr.dist -p /usr', obj/sbin matched ./sbin and wasn't considered extra, so it was descended into and lots of bogus extra things in it were found. This was harmful for `mtree -U' (as reported in pr623) and worse for `mtree -r'. Use rmdir(), not unlink(), to remove `extra' directories. unlink() succeeds for root but unlinking directories normally damages the file system. Report `fts_errno' instead of `errno' when the former applies. Notes: svn path=/head/; revision=9675
* Report `fts_errno' instead of `errno' when the former applies.Bruce Evans1995-07-241-2/+2
| | | | Notes: svn path=/head/; revision=9674
* Better version of spkrtest using perl and dialogAndrey A. Chernov1995-07-233-3/+132
| | | | | | | Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de> Notes: svn path=/head/; revision=9649
* bugfix: traceroute hangs forever, if another ICMP traffics exists andAndrey A. Chernov1995-07-231-5/+14
| | | | | | | | timeout occurse, close PR 612 Submitted by: Bill Fenner <fenner@parc.xerox.com> Notes: svn path=/head/; revision=9648
* Document new tty states TS_CONNECTED, TS_SO_OLOWAT, TS_SO_OCOMPLETE,Bruce Evans1995-07-211-11/+37
| | | | | | | | | | | | | | | | | TS_CAR_OFLOW, TS_CTS_OFLOW, TS_DSR_OFLOW and TS_ZOMBIE. Document old tty states TS_ASLEEP and TS_TTSTOP more completely. Document old tty states TS_ASYNC and TS_TBLOCK. Document not so old tty states TS_CAN_BYPASS_L_RINT and TS_SNOOP. Don't document nonexistent state TS_HUPCL. Document the current line disciplines instead of prehistoric ones. Notes: svn path=/head/; revision=9621
* Support cy driver. All tty drivers require namelist stuff here or theyBruce Evans1995-07-211-2/+35
| | | | | | | | | | | | | | | | won't get reported. The pcvt, cx and iitty drivers aren't supported. Report new tty states TS_CONNECTED, TS_SO_OLOWAT, TS_SO_OCOMPLETE, TS_CAR_OFLOW, TS_CTS_OFLOW, TS_DSR_OFLOW and TS_ZOMBIE if they are defined. Report old tty states TS_WOPEN and TS_ASLEEP only if they are defined. Report not so old tty states TS_CAN_BYPASS_L_RINT and TS_SNOOP only if they are defined (instead of if __FreeBSD__ is defined). Notes: svn path=/head/; revision=9620
* Support for the Boeder DCF77 ReceiverJordan K. Hubbard1995-07-2110-28/+130
| | | | | | | Submitted by: Vincenzo Capuano <VCAPUANO@VMPROFS.ESOC.ESA.DE> Notes: svn path=/head/; revision=9614
* Add a -S option to ypbind that allows the following:Bill Paul1995-07-202-7/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | -S domainname,server1,server2,server3,... The -S flag allows the system administrator to lock ypbind to a particular domain and group of NIS servers. Up to ten servers can be specified. There must not be any spaces between the commas in the domain/server specification. This option is used to insure that that the system binds only to one domain and only to one of the specified servers, which is useful for systems that are both NIS servers and NIS clients: it provides a way to restrict what ma- chines the system can bind to without the need for specifying the -ypset or -ypsetme options, which are often considered to be secu- rity holes. The specified servers must have valid entries in the local /etc/hosts file. IP addresses may be specified in place of hostnames. If ypbind can't make sense ouf of the arguments, it will ignore the -S flag and continue running normally. Note that ypbind will consider the domainname specified with the -S flag to be the system default domain. (According to what Garrett showed me, OSF/1 actually only allows 4 servers to be specified. Ten seemed to be a bit more reasonable to me.) Suggested by: G. Wollman Idea lifted from: OSF/1 Notes: svn path=/head/; revision=9600
* Use daemon() to deamonify ourselves.Bill Paul1995-07-181-9/+4
| | | | Notes: svn path=/head/; revision=9577
* Add missing quote to yyerror call.Justin T. Gibbs1995-07-181-1/+1
| | | | Notes: svn path=/head/; revision=9574
* Allow the specification of the controller bus when wiring down scsi buses.Justin T. Gibbs1995-07-173-4/+15
| | | | | | | | | | | | | This is performed by using a line similar to: controller scbus0 at ahc0 bus 1 to wire scbus0 to the second bus on an adaptec 2742T controller. Reviewed by: Peter Dufault(dufault@hda.com), Rod Grimes(rgrimes@FreeBSD.org) Notes: svn path=/head/; revision=9571
* lpr uses access(2) to determine if the parent directory of the fileTorsten Blum1995-07-171-3/+23
| | | | | | | | | | is writeable (by the real uid). if it is, lpr assumes that the file can be unlinked. lpr does not check for directories with S_ISVTX set Reviewed by: dima Notes: svn path=/head/; revision=9568
* The LINKS variable was being improperly specified as non-relative toJordan K. Hubbard1995-07-171-2/+2
| | | | | | | ${DESTDIR}. Notes: svn path=/head/; revision=9562
* Take hardcoded /usr/sbin out of the install target.Jordan K. Hubbard1995-07-171-2/+2
| | | | Notes: svn path=/head/; revision=9561
* pac had a grudge against usernames starting with 't', because of a typo.Peter Wemm1995-07-171-1/+1
| | | | | | | | | Reviewed by: Submitted by: Kenji Tomita Obtained from: Notes: svn path=/head/; revision=9560
* Some small signal handling tweaks: be sure to keep wait3()ing until allBill Paul1995-07-151-3/+3
| | | | | | | | children are reaped and make sure to block SIGCHLD delivery during handler execution when installing SIGCHLD handler with sigaction(). Notes: svn path=/head/; revision=9532
* Add missing ../ to secure path, close PR 615Andrey A. Chernov1995-07-151-1/+1
| | | | | | | Submitted by: gordon@sheaky.lonestar.org Notes: svn path=/head/; revision=9526
* There was no newline in the error message for kvm_openfiles().Bruce Evans1995-07-131-3/+3
| | | | Notes: svn path=/head/; revision=9520
* Forgot this one in the MD5 reshuffle.Poul-Henning Kamp1995-07-131-3/+3
| | | | | | | Noticed by: Faried Nawaz <fn@pain.csrv.uidaho.edu> Notes: svn path=/head/; revision=9519
* Add kbdmap.Bruce Evans1995-07-121-4/+4
| | | | Notes: svn path=/head/; revision=9496
* Remove -g from CFLAGS.Bruce Evans1995-07-123-5/+5
| | | | Notes: svn path=/head/; revision=9495