Commit Graph

2141 Commits

Author SHA1 Message Date
augustss 78612a1a5b Sync with audioio.h changes. 1997-07-16 06:55:27 +00:00
mikel 85a9bc4ee4 xref moncontrol(3) instead of obsolete monitor(3), sort xrefs 1997-07-16 06:51:44 +00:00
mikel 576ed679d4 xref mount(8) not nonexistent mount(1) 1997-07-16 05:43:33 +00:00
mikel 830d7a544f xref mknod(8) not nonexistent mknod(1), sort xrefs 1997-07-16 04:42:32 +00:00
mark 68401510be Fixed recognition of NetBSD/arm32 shared libraries and dynamically
linked executables.
1997-07-16 02:50:45 +00:00
mark cdc0d0bd29 Build fdformat on arm32 systems. 1997-07-16 02:43:35 +00:00
veego 6937751466 Sync with the recent changes of the audio variables.
s/AUDIO_ENCODING_LINEAR_LE/AUDIO_ENCODING_SLINEAR_LE/
s/AUDIO_ENCODING_LINEAR_BE/AUDIO_ENCODING_SLINEAR_BE/
1997-07-15 18:00:12 +00:00
mikel dba64a9869 xref getpagesize(3) not obsolete getpagesize(2) 1997-07-15 06:36:29 +00:00
mikel 688f066818 fix bug that kept 'leave NNNN' from working unless NNNN was greater
than the current 24-hour time.  leave(1) now always uses 12-hour
time and assumes a target time within the next 12 hours, as
specified by the manpage.
1997-07-15 02:31:13 +00:00
mikel d67f3345cb set WARNS=1 1997-07-15 02:15:59 +00:00
mikel 87d6b38c6d use <sys/cdefs.h> copyright & RCSid macros
include <unistd.h> for prototypes, reorder #includes, nuke old library
  function declarations
add explicit return types and prototypes for local functions
use STDOUT_FILENO instead of manifest constant
initialize variable for gcc -Wuninitialized (marked as such)
1997-07-15 02:14:35 +00:00
mikel e6f7684f2a xref getlogin(2) not getlogin(3) 1997-07-14 02:07:10 +00:00
christos 87d111ebee #if __STDC__ -> #ifdef __STDC__ 1997-07-11 20:17:37 +00:00
christos 4507c82bcc sprintf -> vsprintf 1997-07-11 20:16:01 +00:00
mikel 769693f903 add explicit return types to many functions
pull global variable declarations and function prototypes into hexdump.h
add #includes where necessary for prototypes
replace index() with strchr(), const-poison static string vars, etc.
1997-07-11 06:28:26 +00:00
mikel 2064aaafaa add comparisons to NULL implicit in my last changes
compare result of getopt() to -1, not EOF
1997-07-11 03:47:53 +00:00
mikel 3f0dbdf761 xref exit(3) not exit(2) 1997-07-10 07:57:07 +00:00
mikel fdecd6a253 don't xref obsolete crypt(1) 1997-07-10 07:23:03 +00:00
mikel e4c3c6ef21 there is no checkeq(1) 1997-07-10 07:14:35 +00:00
mikel 3a5de8f076 kill xref to nonexistent adb(1) 1997-07-10 04:31:37 +00:00
christos 487628a792 Fix memory corruption that was caused by debugging code leftovers. 1997-07-10 00:54:44 +00:00
mikel 1ac5792267 update printf formats to match type of line counts 1997-07-09 05:29:48 +00:00
mikel 70875d29b0 protect more variables against gcc longjmp() clobbering 1997-07-09 05:25:45 +00:00
mikel f50e8d7409 make matchto() return type explicit 1997-07-09 05:23:36 +00:00
mikel adaf168e3f add prototype for incfile() 1997-07-09 05:22:00 +00:00
jtc 4ca4391165 /usr/spool/mail -> /var/mail 1997-07-09 02:53:39 +00:00
phil a8316bbccd Fixed bug where long lines (>1023 characters in current implementation)
were viewed as multiple lines by both standard input and ~<file.
Closes PR 3463.
1997-07-07 22:57:52 +00:00
phil 133748a721 Don't print "up" if uptime is less than 30 seconds. (uptime rounds
to the nearest minute.)  Closes PR 2082.
1997-07-07 20:30:08 +00:00
christos e2d4e7ccc8 PR/3825: David A. Holland: global regexp handling gets stuck in infinite loop.
Actually there were two bugs:
	- Add REG_NOTBOL after the first substitution.
	- Handle the rm_so == rm_eo == 0 case, where in a substitution such
	  as 's/bzzzt/z*/g' the first time z* matches nothing.
1997-07-07 19:06:17 +00:00
jonathan 34b0d2463d Re-commit (from non-stale NFS filehandle) with debugging really turned off. 1997-07-07 00:02:16 +00:00
jonathan 25afea2de8 * Delint for gcc -Wall -Wmissing-prototypes -Wstrict-prototypes.
* Add an extra 4096 bytes of padding to the end of ECOFF files for
  the benefit of dumb TFTP clietns that read entire pages.
1997-07-06 23:57:39 +00:00
christos 03507045bc Fix compiler warnings. 1997-07-06 19:31:28 +00:00
pk 90e6fb0581 NULL => 0 (from Arne Juul; addendum to PR#3237). 1997-07-04 21:54:06 +00:00
christos abc99479ba Fix compiler warnings. 1997-07-04 21:25:16 +00:00
lukem aaa55367ba As per discussion with mrg, back out parts of previous change.
The appropriate entry in /etc/group as returned by getgrnam() is
used to determine if 'su root' may be permitted, rather than
checking if membership exists in the result of getgroups().

The following changes were made regarding the behaviour of the special
group for 'su root'
* allow for definition of SUGROUP (defaults to "wheel") to override group name.
* use getgrnam(SUGROUP) instead of getgrgid(0).
* only scan getgrnam(SUGROUP)->gr_mem when checking for group membership.
* be more specific as to why 'su root' failed

NOTE: If a user's primary group is SUGROUP, and they're not a member
of SUGROUP in /etc/group, they will not be able to su.
1997-07-02 05:42:11 +00:00
christos 254d64f064 Add WARNS=1
RCSID police
1997-07-01 21:17:00 +00:00
christos a838817b21 Add WARNS=1 1997-07-01 20:49:59 +00:00
mikel 0e938119f9 make usage string match manpage 1997-07-01 06:39:38 +00:00
jtc b70081bba0 Changed format directive for printing number of blocks from %4ld to
%4qd as the st_blocks field is a int64_t.  Fixes PR 3814.
1997-06-30 21:26:57 +00:00
christos c897d730b5 - Cleanup warnings
- Move ttymsg to libutil.h
1997-06-29 18:28:18 +00:00
lukem 4a8077f211 Provide a different error message than `invalid url' when an
auto-login ftp URL is used when $ftp_proxy is defined. It now prints:
	Auto-login using ftp URLs isn't supported when using $ftp_proxy
Should solve rest of [bin/3643].

Whilst this is inconsistant with the behaviour when $ftp_proxy isn't
defined, the following constraints apply:
* it's not possible to support ftp URL auto-login when $ftp_proxy is
  defined, since it uses http not ftp, and you can't `login' to http
  servers; fudging this would require a major rewrite of ftp anyway)
* silently ignoring $ftp_proxy and not using it if an ftp auto-login
  URL is given is bad user interface design)
* mrg & others will harrass me if I remove support for autologin ftp URLs
  when $ftp_proxy isn't defined, even though it made the behaviour
  consistant whether $ftp_proxy was set or not.
1997-06-29 06:34:50 +00:00
lukem 6840bd89be Don't leak some information (``you have no s/key'').
Only information leaks now are:
* if '-s -s' is used (only allow s/key users, and force s/key use),
  then "login incorrect" will be given if a non-s/key user (or
  non-existant user) attempts to login; no password will be prompted
  for.
  XXX: maybe this should be fixed, but further analysis is required.
* an s/key user will be reminded in the "Password" prompt that they
  have an s/key. Therefore it would be possible to determine if a user
  is active on the machine if they have an s/key.
  XXX: maybe an option is required to control this behaviour
1997-06-29 02:38:25 +00:00
tls a264bd54a1 Fix several bugs in Kerberos support due to an accidental commit months ago of an incomplete version of the code. Now works; also now falls back to 'old' rlogin correctly. 1997-06-28 23:43:36 +00:00
lukem 8d846dbbd1 * Notify of impending password or account expiry (check against
_PASSWORD_WARNDAYS from <pwd.h>). For non-root users, enforce expiry when
  it happens. From Simon Gerraty <sjg@zen.void.oz.au> in [bin/935].
* Check for group 0 in process's current group membership (as returned by
  getgroups(2)), instead of just looking at the entry for wheel in /etc/group.
  Based on code by Dan Caresone <dan@oink.geek.com.au> in [bin/792], and
  also solves [bin/2466].
* Clean up to pass -Wall
1997-06-27 17:01:53 +00:00
lukem 9c9e83ed7f use _PASSWORD_WARNDAYS from <pwd.h> 1997-06-27 16:42:22 +00:00
kleink 52a3f39615 POSIX.2 utilities must call setlocale(LC_ALL, ""); 1997-06-26 23:18:05 +00:00
kleink 0505614d4e Fix formatting directives; from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>
in PR misc/3795.
1997-06-26 20:23:44 +00:00
lukem 5170144fac Apply [bin/3270] from Simon J. Gerraty <sjg@quick.com.au>, with fixes by me:
* if the user has an s/key, provide a reminder in the password prompt
* if '-s' is given once, force a user that has an s/key to use it
* if '-s' is given more than once, only permit s/key logins
1997-06-25 00:15:04 +00:00
mikel f60c9adfd6 include <string.h> and <unistd.h> for prototypes 1997-06-24 06:18:58 +00:00
lukem 4182cf294c Add support for -0 (to be used with find -print0); from OpenBSD.
Clean up man page a bit.
1997-06-24 00:45:28 +00:00