summaryrefslogtreecommitdiffstats
path: root/gnu
Commit message (Collapse)AuthorAgeFilesLines
* Change `install' to `${INSTALL}' so that default install flags can bebde1995-07-2523-41/+42
| | | | specified in the top level Makefiles.
* Change `install' to `${INSTALL}' as usual.bde1995-07-251-1/+1
| | | | | Use -c, not ${COPY}, to install `dir'. ${COPY} should never be used to install source files. The source might be lost if the default is overridden.
* Change `install' to `${INSTALL}' as usual.bde1995-07-241-4/+3
| | | | | Don't remove targets before installing. Removing targets will defeat `install -C'.
* Make the tag checks more strict according to Rod's wishes.joerg1995-07-232-30/+76
| | | | | | Reviewed by: Submitted by: Obtained from:
* Updates, fixes and cleanups -- oh my.wpaul1995-07-199-143/+206
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In ypserv: yp_svc.c: - small signal handler tweak (hopefully the last): just use sigemptyset() to clear sa_mask. Makefile.yp: - Let the user specify the location of master.passwd when updating maps (e.g. make MASTER_PASSWD=/some/path/to/master.passwd). Editing the file to change the location of master.passwd still works. This is mostly to let yppassswdd specify the name of the master.passwd file itself. In yppasswdd: yppasswdd.c: - Roll in some minor changes (mostly casts) from Olaf Kirch's latest yppasswd package release (version 0.7). - Use daemon() instead of doing all the deamonizing gruntwork ourselves. - Call pw_init() after daemonizing ourselves. pw_init() sets up some resource limits and blocks some signals for us. We used to do this before every password change, but there's really no point in calling it more than once during the life of the program. - Change install_reaper() so that we can use it to de-install the SIGCHLD handler if we need to (and we do in pw_mkdb() -- this is what I get for splicing code from two different programs together). - Use sigemptyset(&act.sa_mask) rather than act.sa_mask = 0: the latter is decidedly non-portable. (In IRIX, HP-UX and Solaris, sigset_t is an array of longs, not an int.) update.c: - Roll in change from new version (check that we're not modifying an NIS entry in validate_args()). - Get rid of call to pw_init() (moved to yppasswdd.c). - Check return values from pw_util routines and return error status to yppasswd clients if there's a problem. - Straighten out password file copying mechanism a little. Keep a grip on the original password file rather than summarily overwriting it so that we can restore everything if we fail to fork() a process to update the NIS maps. - Pass the name of the password template file (specified with -m or /etc/master.passwd by default) to the yppwupdate script, which in turn should now pass it to /var/yp/Makefile. pw_util.c: - Nuke the pw_edit() and pw_prompt() functions -- we don't need them. - Change all warn()s, warnx()s and err()s to syslog()s. - Make sure we return error status to caller rather than bailing out in pw_lock() and pw_tmp(). - Don't block SIGTERM in pw_init() (by ignoring SIGTERM, we prevent yppasswdd from being shut down cleanly). - Don't let pw_error() exit. (This stuff was stolen from chpass and vipw which are interactive programs; it's okay to let pw_error() bail out for these programs, but not in a daemon like yppasswdd). - Fix signal handling in pw_mkdb (we need to temporarily de-install the SIGCHLD handler so that we can wait on the pwd_mkdb child ourselves). pw_copy.c: - Change all warn()s, warnx()s and err()s to syslog()s. - Add a bunch of returns() and make pw_copy() return and int ( 0 on success, -1 on failure) so that update.c can flag errors properly. - Return -1 after calling pw_error() to signal failures rather than relying on pw_error() to bail out. - Abort copying if we discover that we've been asked to change an entry for a user that exists in the NIS passwd maps but not in the master.passwd template file. This can happen if the passwd maps and the template file fall out of sync with each other (or if somebody tries to spoof us). The old behavior was to create add the entry to the password file, which yppasswdd should not do under any circumstances. Makefile: - update VERSION to 0.7 yppasswdd.8: - fix typo (forgot a carriage return somewhere) - remove bogus reference to pwunconv(8) which FreeBSD doesn't have. - bump version from 0.5 to 0.7 - Reflect changes in password file handling. yppwupdate: - Log map rebuilds to /var/yp/ypupdate.log. - Pass the name of the template password file to /var/yp/Makefile as $MASTER_PASSWD.
* Update version infoache1995-07-191-1/+1
| | | | | | Reviewed by: Submitted by: Obtained from:
* Sync with bash 1.4.5 versionache1995-07-195-20/+18
| | | | | | Check some null pointers before action, cosmetique fixes Submitted by: Obtained from:
* Remove my last week's CFLAGS hack from Makefile.inc, and fixjoerg1995-07-163-7/+3
| | | | | info/Makefile instead to not clobber the settings inherited from /etc/make.conf.
* Some small signal handling tweaks: be sure to keep wait3()ing until allwpaul1995-07-152-8/+6
| | | | | children are reaped and make sure to block SIGCHLD delivery during handler execution when installing SIGCHLD handler with sigaction().
* Add missing 'break' statement in failure case of ypxfr switch clause.wpaul1995-07-151-3/+6
|
* server.c: When 'securenets' (actually TCP_WRAPPERS) is enabled, don'twpaul1995-07-143-2/+10
| | | | | | | | | | | syslog connections unless they were rejected. This helps save wear and tear on the syslog facility in large networks with many clienst systems. yp_svc.c: Be a little smarter about using sigaction() -- set the SA_RESTART flag. svc_run: Be doubly paranoid about killing off child processes. Do a flag chack and a pid check before letting child 'threads' self-destruct.
* Make ld's error messages consistent with gcc when no input filesrgrimes1995-07-131-2/+2
| | | | | | are given on the command line. Submitted by: Thomas Graichen <graichen@omega.physik.fu-berlin.de>
* Fix dependencies for regex.texi. It is constructed by merging a C headerbde1995-07-121-1/+1
| | | | file with an info source file.
* Fix dependencies for gcc.info and reno.info. `make depend' doesn't handlebde1995-07-121-0/+5
| | | | info files although texinfo supports @include.
* ypserv performance improvements:wpaul1995-07-124-18/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - There are two cases where the server can potentially block for a long time while servicing a request: when handling a yp_all() request, which could take a while to complete if the map being transfered is large (e.g. 'ypcat passwd' where passwd.byname has 10,000 entries in it), and while doing DNS lookups when in SunOS compat mode (with the -dns flag), since some DNS lookups can take a long time to complete. While ypserv is blocked, other clients making requests to the server will also block. To fix this, we fork() ypall and DNS lookups into subprocesses and let the parent ypserv process go on servicing other incoming requests. We place a cap on the number of simultaneous processes that ypserv can fork (set at 20 for now) and go back to 'linear mode' if it hits the limit (which just means it won't fork() anymore until the number of simultaneous processes drops under 20 again). The cap does not apply to fork()s done as a result of ypxfr calls, since we want to do our best to insure that map transfers from master servers succeed. To make this work, we need our own special copy of svc_run() so that we can properly terminate child processes once the RPC dispatch functions have run. (I have no idea what SunOS does in this situation. The only other possibility I can think of is async socket I/O, but that seems like a headache and a half to implement.) - Do the politically correct thing and use sigaction() instead of signal() to install the SIGCHLD handler and to ignore SIGPIPEs. - Doing a yp_all() is sometimes slow due to the way read_database() is implemented. This is turn is due to a certain deficiency in the DB hash method: the R_CURSOR flag doesn't work, which means that when handed a key and asked to return the key/data pair for the _next_ key in the map, we have to reset the DB pointer to the start of the database, step through until we find the requested key, step one space ahead to the _next_ key, and then use that. (The original ypserv code used GDBM has a function called gdbm_nextkey() that does this for you.) This can get really slow for large maps. However, when doing a ypall, it seems that all database access are sequential, so we can forgo the first step (the 'search the database until we find the key') since the database should remain open and the cursor should be positioned at the right place until the yp_all() call finishes. We can't make this assumption for arbitrary yp_first()s and yp_next()s however (since we may have requests from several clients for different maps all arriving at different times) so those we have to handle the old way. (This would be much easier if R_CURSOR really worked. Maybe I should be using something other than the hash method.)
* Fix two typos in a comment.ats1995-07-081-3/+3
|
* Makefile:ats1995-07-083-9/+9
| | | | | | | | | Fix the use of /usr/X386 to ${X11BASE}. Fix the pathname /usr/bin/chess to /usr/games/chess. XCircle.c: Fix the comment after an ifdef to make it a real comment to silent gcc. std.h: Comment out a private definition of sys_errlist.
* I added a few lines of code to the latest info browser in thejoerg1995-07-085-7/+102
| | | | | | | | | | | texinfo-3.6 distribution to enable the use of the cursor keys. Since there is an open problem report (gnu/289) for this it might be of interest for (some of) you. I (Joerg) have also added a minor hack that makes info recognizing a window size change while it has been suspended. Submitted by: thomas@ghpc8.ihf.rwth-aachen.de (Thomas Gellekum)
* Define CPLUSPLUSLIB so that bsd.lib.mk will add c++rt0.o to calldfr1995-07-051-2/+3
| | | | | | | constructors and destructors. Add -lgcc_pic to LDADD for the shared library since C++ code uses stuff from libgcc and we no longer have a shared libgcc. Should this be done by CPLUSPLUSLIB?
* Oh fer cryin' out loud... While playing with the ypserv code on a differentwpaul1995-07-041-1/+8
| | | | | | | | | platform, I discovered the following: if you use ypcat (or anything that does a yp_all() for that matter) to dump out a map and then hit ^C before it finishes, ypserv gets hit with a SIGPIPE and dies. (The ypall() service is implemented using TCP.) Fix: ignore SIGPIPEs.
* Add a dependency on the .x source file and avoid copying it.bde1995-07-041-10/+8
| | | | | | | bootparam_prot.x was changed for nfsv3 but bootparamd and callbootd kept using the old version which fortunately failed at build time. Copying hasn't been necessary since path handling was fixed in rpcgen/rpc_main.c some time ago.
* Small touchups in open_database():wpaul1995-07-021-5/+3
| | | | | | | - Use one sprintf() to put together the path to the map database instead of strcat()s and strcpy()s. - Make the 'error opening database' Perror() statement sane.
* Change ld.so to correctly load dependant libraries for dlopen and unload themdfr1995-06-271-66/+234
| | | | | | | | | | | | | | | | | on dlclose. Also correctly call constructors and destructors for libraries linked with /usr/lib/c++rt0.o. Change interpretation of dlopen manpage to call _init() rather than init() for dlopened objects. Change c++rt0.o to avoid using atexit to call destructors, allowing dlclose to call destructors when an object is unloaded. Change interface between crt0 and ld.so to allow crt0 to call a function on exit to call destructors for shared libraries explicitly. These changes are backwards compatible. Old binaries will work with the new ld.so and new binaries will work with the old ld.so. A version number has been introduced in the crt0-ld.so interface to allow for future changes. Reviewed by: GAWollman, Craig Struble <cstruble@singularity.bevc.blacksburg.va.us>
* Remove bogus references to /usr/ucb.bde1995-06-261-2/+2
|
* Improve the handling of large minor numbers:bde1995-06-263-5/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cpio/copyout.c: Don't output a file if the major, minor or totality of its rdev would be truncated. Print a message about the skipped files to stderr but don't report the error in the exit status. cpio's abysmal error handling doesn't allow continuing after an error, and the rdev checks had to be misplaced to avoid the problem of returning an error code from routines that return void. pax/pax.h: Use the system macros for major(), minor() and makedev(). pax already checks _all_ output conversions for overflow. This has the undesirable effect that failure to convert relatively useless fields such as st_dev for regular files causes files not to be output. pax doesn't report exactly which fields couldn't be converted. tar/create.c: Don't output a file if the major or minor its rdev would be truncated. Print a message about the skipped files to stderr and report the error in the exit status. tar/tar.c: For not immediately fatal errors, exit with status 1, not the error count (mod 256). All: Minor numbers are limited to 21 bits in pax's ustar format and to 18 bits in archives created by gnu tar (gnu tar wastes 3 bits for padding). pax's and cpio's ustar format is incompatible with gnu tar's ustar format for other reasons (see cpio/README).
* Convert the colon after (send-pr) into a period, so the info file canjoerg1995-06-241-1/+1
| | | | | | be actually found. Suggested by: someone on the bugs (or -hackers) list, whose name i forgot
* Add an "-m" flag to merge instead of replace the entries. We canasami1995-06-242-41/+75
| | | | | | | | | | | now safely add a line like ldconfig -m ${PREFIX}/lib in ports' Makefiles and packing lists without throwing away some directories the user may have added. Submitted by: Mostly by Paul Kranenburg <pk@cs.few.eur.nl>
* Fixed awk scripts for 'netgroup,' 'ethers.*' and 'bootparams' targets so thatwpaul1995-06-181-5/+5
| | | | | | corresponding map databases are created correctly. This fixes the problem Ken Wilcox noted on the freebsd-bugs list.
* Make `ld' properly honoring the umask setting when chmod'ing thejoerg1995-06-141-3/+7
| | | | | | output file for the `x' bits. This is a Posix requirement.
* Merge RELENG_2_0_5 into HEADrgrimes1995-06-111-6/+6
|
* Remove trailing whitespace.rgrimes1995-05-30929-12754/+13019
|
* Added a NOMAN= macro as this subdir doesn't have a manpage yet.ats1995-05-282-0/+2
|
* Replaced the whole former Makefile with a more BSD conformant Makefile.ats1995-05-281-17/+4
|
* Reviewed by: with the allowance of Rod :-).ats1995-05-281-0/+1
| | | | | | | Add a NOMAN= . It doesn't have a manual page yet. Please don't cry :-). I ask Rod first. the whole isdn subdir is not used in the moment and is only dead source code in the tree.
* Add link to sperl4.036, needed for suid scripts and pgmsache1995-05-281-0/+1
| | | | which use sperl$]
* Make link to tperl4.036, needed for suid scripts and other stuffache1995-05-281-0/+1
| | | | which use tperl$]
* Fix $] variable value (version number), close PR 449ache1995-05-281-2/+8
| | | | Submitted by: Bill Fenner <fenner@parc.xerox.com>
* Don't make TAB and BACK-TAB destroy field contents incorrectly.jkh1995-05-281-2/+1
| | | | Submitted by: gibbs
* eliminate coredump for readline(NULL) caseadam1995-05-221-1/+1
|
* configuration files are in /etc/uucp and spool files are in /var/spool/uucpjmz1995-05-206-33/+33
|
* Don't chdir to subdirs before formatting, non-native manpagesache1995-05-201-28/+40
| | | | | assume it for .so directive Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de>
* Make error message for no input files specified consistent across allrgrimes1995-05-173-3/+3
| | | | | | three compilers. Submitted by: Thomas Graichen <graichen@sirius.physik.fu-berlin.de>
* Remove extra argument from mesgboxache1995-05-161-1/+1
|
* Call mesgbox instead of msgbox for long descriptionsache1995-05-161-1/+1
|
* Changes to support the new dialog_dselect() features required to fixjkh1995-05-162-13/+62
| | | | | pkg_install. dialog_dselect() wasn't very useful before. Submitted by: Marc van Kempen <wmbfmk@urc.tue.nl>
* Fix draw shadow bug, when shadow reaches end of the screen,ache1995-05-151-20/+34
| | | | bringed by devmenu or tzsetup f.e.
* This patch teaches info to read gzipped files (emacs info alreadyrgrimes1995-05-141-0/+1
| | | | | | | works) so one can gzip files in /usr/share/info and save a few megabytes diskspace. Submitted by: Kai Vorma <vode@snakemail.hut.fi>
* Install uuconv/uuchk with right permissionsache1995-05-142-8/+2
|
* Update other Makefiles to reflect uuconv/uuchk install place changeache1995-05-133-6/+6
|
* Install uuconv/uuchk to /usr/sbinache1995-05-133-5/+6
|
OpenPOWER on IntegriCloud