Commit Graph

2206 Commits

Author SHA1 Message Date
cgd e765fcae61 find nm more correctly: if user has set 'NM', use it but expand it to a
full path using the user's path, before setting the path used by the
script.  If it can't be found, try using the standard path used by the
script to find it (/bin:/usr/bin), and if it still can't be found, exit.
If user hasn't set NM, try to use nm, again searched for via their path,
then via the standard path.
1997-07-20 23:25:12 +00:00
christos a8110bb91b Add prototype for orcmd. 1997-07-20 20:44:23 +00:00
lukem 076ac8bdc3 Send \r with \n in http requests. Allow "content-length" to be missing.
From [bin/3891] by Krister Walfridsson <cato@ulysses.df.lth.se>
1997-07-20 12:49:26 +00:00
lukem b9d5554d5d * use RCSID() && COPYRIGHT() macros
* cleanup for WARNS=1 (including some ugly '(void)&var' bits wrapped in
  #ifdef __GNUC__ to shut up gcc warnings WRT setjmp/longjmp)
* use strtol() instead of atoi(), and more extensively check result of
  conversion
* use u_int16_t instead of short or int for TCP port addresses
1997-07-20 09:45:35 +00:00
jonathan 623d454fe0 * Rewrite symbol-remapping code, compatible with mips ECOFF toolchain.
* delint for -Wall -Wstrict-prototypes -Wmissing-prototypes.
1997-07-20 03:50:54 +00:00
perry 9aea42ec4e Change the "overlarge UID/GID truncation" from USHRT_MAX, which might
someday exceed 16 bits, to an arbitrary constant that won't.
1997-07-19 22:19:35 +00:00
perry bccc3d5d81 add -o option -- submitted in pr-1857 by Niklas Hallqvist 1997-07-19 19:47:38 +00:00
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
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
mrg 586ed80911 install all man pages. 1997-06-23 13:25:41 +00:00
lukem 806ac9275c Install statically linked, as suggested by mrg@eterna.com.au in [bin/1715]. 1997-06-23 12:47:45 +00:00
veego de140ea979 Move stdio.h before skey.h to get the FILE struct. 1997-06-23 11:19:10 +00:00
mikel 63482e654c include <skey.h> for skey function prototypes, add parens for gcc -Wall 1997-06-23 01:20:40 +00:00
christos 0dd9a66363 Don't need "md4.h" and "skey.h" -> <skey.h> 1997-06-22 18:51:47 +00:00
christos f109caff0b - Don't need extra CFLAGS anymore
- Remove skeyinfo.
1997-06-22 18:51:15 +00:00
christos e4078d59e4 Add skeyinfo 1997-06-22 18:50:33 +00:00
christos eb3207d9ee PR/3417: Andrew Brown: Skeyinfo should be a program so that if /etc/skeyskeys
is mode 600, it can only read the user's own keys.
1997-06-22 18:49:55 +00:00
christos f2ad06ea17 Now this is a separate program. 1997-06-22 18:44:37 +00:00
mellon 3921fa8412 Prototype everything, fix RCS Id 1997-06-21 04:41:27 +00:00
lukem 19474db41e Ensure calendar doesn't go past \0 in a string.
From Douglas Crosher <dtc@scrooge.ee.swin.oz.au> in [bin/1018]
1997-06-20 08:11:34 +00:00
christos 1f54dc36dd Use mkstemp 1997-06-18 19:08:29 +00:00
christos f8c7b1919f Kill warnings in skeleton for gcc -Wall 1997-06-18 19:08:05 +00:00
mikel ddeaf8c1de fix off-by-one error in malloc() call; from Ted Felix in PR bin/3752. 1997-06-17 07:26:38 +00:00
thorpej 1fb754977a Need <sys/exec.h> to get stuff that <machine/ecoff_machdep.h> needs. 1997-06-16 22:10:27 +00:00
christos 47af6101e4 - PR/3727: Wolfgang Rupprecht: rsh takes 80% of the cpu
- rsh/rcmd combinations don't die sometimes, and spin in poll loops
    + detect errors from read/write etc, don't ignore them in some cases
    + use INFTIM instead of 0 in poll
    + detect invalid file descriptors in poll
    + use varargs/stdarg as appropriate
    + use posix signal calls
    + EWOULDBLOCK -> EAGAIN
1997-06-16 20:54:16 +00:00
jtk c637244f86 improve (slightly) dense wording in the bugs section 1997-06-16 02:13:46 +00:00
jtk 9ed98415a3 exit with error if extra arguments are left on command line 1997-06-16 02:10:45 +00:00
bouyer 558f2d0ebe Make this compile again, and add support for ext2fs.
Also 2 ufs->ffs conversions in pstat.8.
1997-06-12 07:45:28 +00:00
lukem 3e92284533 * Only print the progress bar when ftp(1) is the foreground progress.
Patch from enami tsugutomo <enami@ba2.so-net.or.jp> in [bin/3735].
* Fix punctuation.
1997-06-10 21:59:58 +00:00
lukem a95a28e4d8 Don't use editing or progress bar if $TERM isn't set or is "dumb". Fixes
emacs ange-ftp. Suggested by Todd Miller <Todd.Miller@courtesan.com>,
tested by matt green <mrg@eterna.com.au>
1997-06-10 07:04:43 +00:00
christos 9981dd99c2 Apparently, using _doprnt(_IOREAD) to emulate vsnprintf() on SVR4 *sometimes*
core-dumps; use sprintf()+strlen() for now.
1997-06-07 16:42:31 +00:00
christos 702a3f7097 Deal with archive.a(member.o) nodes when expanding .USE dependencies or
adding children to .OODATE.
1997-06-07 16:41:09 +00:00
christos fab62ec0e9 Don't confuse `member' with `target' 1997-06-07 16:39:45 +00:00
jtk 8bd5e0fbf3 remove spurious comma in newstyle structure return case 1997-06-06 17:27:33 +00:00
mrg 66bc7bd651 fix PR#3710, reported by Tatoku Ogaito <tacha@trap.fukui-med.ac.jp>.
- don't pass pw->pw_name into functions; make a copy.
1997-06-05 16:10:46 +00:00
mikel c1c7844b3d fix typo in SYNOPSIS, nuke duplicate RCSid 1997-06-05 06:35:24 +00:00
leo bafe3a5dcf Use MACHINE instead of MACHINE_ARCH to make fdformat on the atari. 1997-06-04 13:54:08 +00:00
mikel b606e6941b fix some minor macro usage and other bugs; some from Saitoh Masanobu
in PR misc/3656, others by myself.
1997-06-03 06:31:20 +00:00
mycroft eed746a9eb Don't interpret _POSIX_VDISABLE as a special character. 1997-06-03 01:51:43 +00:00
mrg 701a388310 rsh is not setuid anymore. 1997-06-02 11:58:13 +00:00
mrg 32b4c34ed2 rcmd(1) does not use argv[0] for hostname, like rsh does.
apply patch for pr#3695 from <hannken@ppp-jhi.eis.cs.tu-bs.de>.
1997-06-02 11:57:23 +00:00
kleink 86d80fb61d Determine characters to be swallowed by means of locale and ctype.
This addresses PR/3693 from Jaromir Dolecek <dolecek@moria.ics.muni.cz> but
does not really fix it, as the new ctype package has yet to be integrated.
1997-05-31 15:13:49 +00:00
cgd c917dfb5b2 Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
	.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
	.Dd "month day, year"
which is what these pages did.
1997-05-29 01:48:05 +00:00
pk 3552d54978 Erase spurious character. 1997-05-26 23:07:31 +00:00