summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* o If the file being tailed is moved back to the original location,jlemon2001-06-061-1/+3
| | | | | resume using kqueue to monitor it, if possible. o auto-clear the read filter on EOF; this is needed when tailing a FIFO.
* fmt(1) rewrite by Gareth McCaughan.ru2001-06-063-552/+660
| | | | | | | PR: bin/5901, bin/12242, bin/19071 Submitted by: Gareth McCaughan <gjm11@dpmms.cam.ac.uk> Obtained from: OpenBSD + ctype(3), WARNS=2, and manpage cleanup MFC after: 2 weeks
* There is no reason for logname to call getopt(3), it doesn't takephk2001-06-051-10/+4
| | | | | | | any options. PR: 26689 Submitted by: FĂ©lix-Antoine Paradis <reel@sympatico.ca>
* - Optimise current cursor position displaying routines, to avoid unnecessarysobomax2001-06-031-10/+8
| | | | | | | | cursor movements; - minor cleanups in cursor position displaying routines; - properly resent "file modified" flag when editing several files. MFC after: 1 week
* Use S_IXUSR instead of hardcoded values.mikeh2001-06-021-5/+5
| | | | Reviewed by: md5
* Don't treat the pipe symbol in capabilities as an alternateru2001-06-011-2/+4
| | | | | | | | | | | | record name indicator; this causes a spurious warning: $ cat x record:\ :capability=|value: $ cap_mkdb x cap_mkdb: ignored duplicate: record Spotted by: dcs
* Do retry next entry in addrinfo during connect.ume2001-06-011-5/+10
| | | | MFC after: 1 week
* Replace a use of the hw.nintr sysctl as it has just gone away, casttmm2001-06-013-6/+11
| | | | | size_t variables when passing them to a printf-like function, and some minor cleanups.
* Don't try to print a completion percentage for zero-size files.des2001-06-011-1/+1
| | | | | PR: 27780 Submitted by: Craig Leres <leres@ee.lbl.gov>
* Correct a typo.dd2001-06-011-1/+1
| | | | | PR: 22885 Submitted by: Rene de Vries <rene@tunix.nl>
* Correct some typos.dd2001-06-011-3/+3
| | | | | PR: 27251 Submitted by: Pekka Savola <pekkas@netcore.fi>
* Don't install setgid kmem.dd2001-06-011-2/+0
|
* Cast size_t variables before printing them to cope with the case oftmm2001-05-311-2/+2
| | | | sizeof(size_t) != sizeof(int).
* Convert to use the sysctl interface to obtain the data when operatingdd2001-05-312-52/+240
| | | | | | | on a running system. Using kvm is still supported, primarily for postmortem analysis. Reviewed by: tmm
* Display -tcp w/o load average so that all statistics fits on a 80x25 screen.ru2001-05-312-3/+3
|
* Show TCP checksum failures with -tcp display.ru2001-05-311-0/+3
| | | | | PR: bin/27786 Submitted by: Brooks Davis <brooks@one-eyed-alien.net>
* Note that the default behavior has changed to copy files.ru2001-05-301-9/+11
| | | | | | Also, fix markup in the SYNOPSIS. Submitted by: dougb
* Backout rev. 1.42 (relaxing the check for -d plus other flags).ru2001-05-301-1/+8
| | | | | | | Instead, issue a warning for now if -d and -C options are used together. This will be turned into an error before 4.5-RELEASE. Reviewed by: imp
* Mention how env(1) can be used with the "#!" construct.dd2001-05-301-0/+19
| | | | | PR: 27690 Submitted by: Mike Meyer <mwm@mired.org>
* Don't claim to ignore interrupts.dd2001-05-301-3/+3
| | | | | PR: 27747 Submitted by: Gerhard Sittig <Gerhard.Sittig@gmx.net>
* Remove home-grown prototypes of time() and localtime().dd2001-05-301-3/+3
| | | | Reviewed by: md5(1)
* Replace the cast I removed in rev. 1.16 with a slightly less evil onedd2001-05-291-1/+1
| | | | | | | (well, at least one that gcc doesn't complain about). This fixes -r, which rev. 1.16 broke. Submitted by: bde
* Remove MFSphk2001-05-291-4/+0
|
* Use use ${INSTALL} -d in our build process. If INSTALL is set toimp2001-05-291-1/+1
| | | | | "install -C" then things will fail due to new checks. Relax the checks so that install -C -d works again.
* Make sure the len() builtin always returns an answer. Previously,gshapiro2001-05-291-2/+1
| | | | | | | len(`') didn't return an answer. Now it returns 0. PR: bin/12942 MFC after: 5 days
* Direct queries for IP numbers to ARIN. It would be nice if we couldphk2001-05-282-6/+19
| | | | | | | | | | | send them to APNIC/RIPE intelligently, but we can't at this time so fallback to ARIN and depend on them telling the user where to look. Maybe we need a .whoisrc file... PR: 24707 Submitted by: Mike Barcroft mike@q9media.com MFC after: 1 week
* Call kvm_close() before exit for consistency.phk2001-05-281-1/+4
| | | | | PR: 24654 Submitted by: Daniel Hemmerich zartik@yahoo.com
* Many new features and optimization improvements:ru2001-05-282-292/+377
| | | | | | | | | | | o New flags: -b and -B (backup) o New flag: -S (safe copy; aka "atomic" install) o The -c flag is now the default. o The -D flag was withdrawn. Reviewed by: bde (up to some point) Obtained from: OpenBSD but heavily modified MFC after: 1 month
* Follow symbolic links named as command line arguments if run without -R.ru2001-05-281-2/+3
| | | | | | | | | | | | | | This is required by symlink(7), ``Commands not traversing a file tree'' subsection, third paragraph: : It is important to realize that this rule includes commands which may : optionally traverse file trees, e.g. the command ``chown file'' is : included in this rule, while the command ``chown -R file'' is not. For chown(8) and chgrp(1), this is also is compliance with the latest POSIX 1003.1-200x draft. MFC after: 1 week
* The last(1) choked if there were two successive "login" marksru2001-05-281-4/+1
| | | | | | | | | | | | | | | | | | | | | | found in wtmp(5) for the same TTY without in-between "logout" mark. This may be demonstrated by executing login(1), logging in and out, and watching the last(1) output on this TTY: : # last -tv7 -w : ru ttyv7 Mon May 28 12:46 - 12:46 (00:00:01) : ru ttyv7 Mon May 28 12:45 still logged in The fix merely takes the second "login" mark as the "logout" for the first "login" mark, if there were no "logout" mark in-between. This restores the behavior of last.c,v 1.2: : # last -tv7 -w : ru ttyv7 Mon May 28 12:46 - 12:46 (00:00:01) : ru ttyv7 Mon May 28 12:45 - 12:46 (00:00:25) Silence from: -arch, dg
* Silence warnings (most about constness) and clamp down with WARNS=2.dd2001-05-282-5/+7
| | | | Tested on i386 and alpha.
* Fix overflowing on nul character.mikeh2001-05-281-1/+1
| | | | | PR: bin/16926 MFC after: 1 week
* Implement snapshots. The new -d option allows the user to find outdd2001-05-282-73/+248
| | | | | | who was logged in at a certain time and date. Obtained from: OpenBSD
* Silence warnings and compile with WARNS=2 on i386 and alpha.dd2001-05-282-12/+12
|
* Miscellaneous cleanups; sync to OpenBSD as much as feasible.dd2001-05-271-81/+68
| | | | | | | | | | | | Noteworthy changes include: * Use getopt(3). * Fix overflows in -b and -w options. * Use strlcpy(3) and snprintf(3) in favor of strcpy(3) and sprintf(3), respectively. Also check return values of the former two. * Fix lots of other gratuitous differences with OpenBSD. Obtained from: OpenBSD
* Cleanup mail(1)'s varying styles by converting to using style(9).mikeh2001-05-2726-1460/+1453
| | | | | | | | | Also take a stab at cleaning up BDECFLAGS and convert all uses of NOSTR, NIL, NONE, NOVAR, NOGRP, NOGE to NULL. Also kill 'register' to get diffs somewhat closer to OpenBSD/NetBSD. There are no functional changes however. Reviewed by: nra (visual inspection)
* Damn. Fix typo in previous commit.des2001-05-271-1/+1
|
* Fix a trivial warning and clamp down with WARNS=2kris2001-05-262-5/+7
| | | | MFC after: 1 week
* Fix a trivial warning and clamp down with WARNS=2kris2001-05-262-1/+3
| | | | MFC after: 1 week
* Fix some trivial warnings and clamp down with WARNS=2kris2001-05-262-2/+9
| | | | MFC after: 1 week
* Fix WARNS=2 warnings on alpha and i386 and clamp it downkris2001-05-262-43/+45
|
* When running on a tty, install an authentication callback.des2001-05-261-8/+52
|
* Deconvolute the authentication mess, and hand total responsiblitymarkm2001-05-263-358/+226
| | | | | | | | | | for authentication to PAM. This meens that WHEELSU-type logic can now be effected in the pam.conf "su" configuration stack. While here, clean up the mess that the code had assumed over years of hacking by folks using different styles. ANSIfy. There is more policy in here that can be handed over to PAM. This will be revisited.
* Fix the error buffer passed to kvm_openfiles to have a correct lengthtmm2001-05-261-1/+2
| | | | | | of _POSIX2_LINE_MAX. MFC after: 1 week
* Fix the error buffer passed to kvm_openfiles to have a correct lengthtmm2001-05-251-1/+2
| | | | | | of _POSIX2_LINE_MAX. MFC after: 3 days
* Mark error() as __printflike() and fix a non-exploitable format stringkris2001-05-252-2/+2
| | | | | | error. MFC after: 1 week
* Fix the error buffer passed to kvm_openfiles to have a length oftmm2001-05-251-2/+4
| | | | | | | _POSIX2_LINE_MAX as required. While being there, wrap an overly long line. MFC after: 3 days
* - sys/msdosfs moved to sys/fs/msdosfsru2001-05-251-5/+5
| | | | | - msdos.ko renamed to msdosfs.ko - /usr/include/msdosfs moved to /usr/include/fs/msdosfs
* Make it clear that -P is the default.ru2001-05-252-4/+5
| | | | PR: docs/27629
* If the user exists abruptly, tip's "tipout" child can hang aroundphk2001-05-242-1/+14
| | | | | | | | | | | forever. Since the lock file doesn't get cleaned up, this prevents other users from accessing the target device. (phk adds: Man, this has been bugging me for YEARS!) PR: 12528 Submitted by: Craig Leres leres@ee.lbl.gov MFC after: 1 week
OpenPOWER on IntegriCloud