Commit Graph

2149 Commits

Author SHA1 Message Date
perry 4c79cc7435 fix 3884 from SAITOH Masanobu 1997-07-18 23:31:00 +00:00
thorpej 469760f207 - Don't deref bad pointer if domain name isn't set.
- Fix compiler warnings.
- KNF.
1997-07-18 07:40:42 +00:00
thorpej 00c02e3e6b - Fix compiler warnings.
- KNF.
1997-07-18 07:05:35 +00:00
thorpej 981a9bdece - Clean up compiler warnings.
- KNF.
1997-07-18 06:16:29 +00:00
phil 84d2fe3f1c Correct 12am and 12pm to be midnight and noon resprectively.
Patch from PR 1743.
1997-07-18 01:09:48 +00:00
phil e285bfacc1 Add a new example to SYNOPSIS, change the example. This is in response
to the fact that the /bin/sh set command always sets the exit status to
0, so testing $? will not help discover if getopt found an error if
getopt is used via "set -- `getopt ....`".  (POSIX 1003.2 D11 draft says
that the sh set command must return 0 as the exit status.)

I think that POSIX is wrong or that is is not well enough specified to
allow the result of the set to be the exit status of the getopt.  But
considering the sequential nature of execution, the set is done last
and is the "last command" and therefore must be the one to set the exit
status.  At least there is a work-around for shell scripts.
1997-07-18 00:18:26 +00:00
phil 3417167725 Add a SYNOPSIS section and document the arguments of -n and -p.
Closes PR 1616.
1997-07-17 17:08:34 +00:00
perry c0274208c2 add -T option to display seconds, from jhawk in pr-1548 1997-07-17 02:36:55 +00:00
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