Commit Graph

3826 Commits

Author SHA1 Message Date
kleink 3b9e70a904 Pasto in previous; noticed by Perry. 1999-09-06 21:50:39 +00:00
kleink 4fe72c2fe5 Use NL_TEXTMAX to size the buffer passed to regerror(). 1999-09-06 09:37:29 +00:00
jwise 6c0498c892 Apply fix from PR bin/8328 by Anders Hjalmarsson (Anders.Hjalmarsson@economics.gu.se):
work properly again when passwd multiple files on the command line.
1999-09-06 06:45:20 +00:00
itojun 1f293daeb9 fix getaddrinfo() loop.
Approved by: seirios@iri.co.jp (submitter of IPv6 whois patch)
1999-09-06 06:23:08 +00:00
tron 4de1769208 Forgot to mention OpenBSD in history. 1999-09-04 20:53:05 +00:00
tron 16e75e8bbc Correct history for NetBSD and add RCS Id. 1999-09-04 20:36:15 +00:00
mycroft 3596f4a0cb Increase the default maxmagic. 1999-09-04 19:51:58 +00:00
mycroft bd10bffcd8 Make maxmagic always increase by a factor of 2. 1999-09-04 19:51:11 +00:00
perry 29c51c5557 fix a bug with terminal modes being badly set on exit 1999-09-04 18:02:58 +00:00
perry bfb2ae4d85 Clean up, add RCS ids, make this build on a modern NetBSD, etc., etc. 1999-09-04 17:07:22 +00:00
perry e3d1a2c0e4 Initial import of "qsubst", a command line query search and replace
facility. Note that this is the raw distribution I got from der Mouse,
for reference on the vendor branch.
1999-09-04 17:04:05 +00:00
christos 7057287c54 PR/8259: Chris Demetriou: Fix stack overflow bugs exposed by the glibc-2.1.1
Makefile. Use snprintf everywhere.
1999-09-04 04:21:28 +00:00
kleink edafa96ea6 Change the behaviour when in `more' mode (less invoked as more):
* Treat search patterns as BREs only, per 1003.2 and XCU5.
* Do not perform any special treatment when an unqoted * or @ is given as
  the first character of the search pattern.
Addresses PR bin/8269 by Chris Demetriou.
1999-09-03 22:07:05 +00:00
itojun fa7c0ce4df IPv6-ready whois client.
PR: 8281
1999-09-03 13:51:28 +00:00
itojun a4e46e8ae8 sync with recent kAME.
- avoid s6_addr{8,16,32} which are nonstanard.
1999-09-03 04:29:57 +00:00
itojun f84fab5af8 sync with recent KAME.
- fix routing socket align issue on 64bit arch.
- avoid s6_addr{8,16,32}, which are nonstandard.
1999-09-03 04:26:31 +00:00
tron 8bdd9799a5 Build and install "mktemp". 1999-09-02 20:48:27 +00:00
tron bd999492f6 Import FreeBSD's mktemp(1) utility. 1999-09-02 20:46:17 +00:00
itojun b59b162709 ftpd(8): Copy sin6_scope_id from control connection to active data
connection destination, hoping this to help ftpd's behavior with
scoped IPv6 addresses.
I'm not sure if it is the right way, but it is the best way available to us.
LPRT or EPRT command gives no information about which interface (or scope)
to be used for new data connection.

ftp(1): On data connection establishment, warn if scoped address is used.
If peer (ftp daemon) does not handle scoped address, data connection
may not work right.

This seems to be sort of protocol spec hole, not implementation issue.
1999-09-01 05:03:41 +00:00
christos 915a67c083 The port number might have changed in the proxy case. Re-evaluate it. 1999-08-31 22:05:22 +00:00
christos 0f5eb412c3 fix proxy code. strtol() does not work very well for parsing port names. 1999-08-31 21:30:25 +00:00
kleink 3e325adc1a Nuke unused V8 regexp. 1999-08-31 21:05:07 +00:00
christos 2cec9705c5 make ftp work again with the traditional gethostbyname/getservbyname
interfaces.
1999-08-29 22:21:57 +00:00
mycroft 625f1f9bb9 Don't use .Fl for non-flags. 1999-08-29 17:50:09 +00:00
christos 36dc48ce6e Amazing how this worked for so long. setenv(3) expects environ(7) to be
a malloc'ed pointer and it tries to realloc(3) it if it had to grow it
before. su(1) gave it a pointer from the stack which caused realloc to
core dump.
1999-08-29 04:21:55 +00:00
simonb dcb4cadef7 Don't need strftime() on Ultrix either. 1999-08-27 00:47:25 +00:00
marc 6458b2ce43 it doesn't make any sense to use -u with -r or -i, so don't permit it. 1999-08-26 07:33:16 +00:00
hwr a657ac3ef3 Added missing ``"''. From PR 8278 by <seebs@plethora.net>. 1999-08-26 07:18:10 +00:00
christos f5241efcfa make this compile.... 1999-08-25 19:58:15 +00:00
thorpej cff45b3bc0 formatting nits; nothing a quick pass through indent(1) can't fix. 1999-08-25 05:15:39 +00:00
thorpej 8c879edd2b Nuke extra RCS ID, rearrange some includes. 1999-08-25 05:13:06 +00:00
thorpej 6d16244386 Update for new semctl() footprint. 1999-08-25 05:12:15 +00:00
thorpej 345cb51c05 Update for changes to SVID IPC data structures. 1999-08-25 05:11:51 +00:00
mrg ec70388809 add a comment 1999-08-24 09:16:36 +00:00
lukem 6d532c26d3 fetch_url() fixes:
- just display the hostname:port of the proxy url, rather than the full url.
  this prevents someone `shoulder surfing' a proxy username/password
  in $http_proxy. [suggested by perry]
- compact verbose notes for http fetchs; now displays
    (via host:port, with authorization, with proxy authorization)
  with each component being optional.
(and a couple introduced with the ipv6 mods...)
- don't override host with the canonical name; this prevented fetches from
  http/1.1 virtual hosts from working if the virtual host was a CNAME.
  [noted by bernd]
- call freeaddrinfo() if res was built with getaddrinfo()
1999-08-22 12:49:00 +00:00
enami 07f35abba9 Replace TAB in message printed by file command with SPACE. 1999-08-21 16:05:56 +00:00
matt a5b92e89e1 Add knowledge of the VAX ELF magic number 1999-08-21 00:28:09 +00:00
ross cf4d2683a8 Classical Unix guaranteed that nice +19 would not compete with base priority
process execution. As this is true once again: say so.
1999-08-20 20:03:21 +00:00
ross be6dde2c3c Note that nice +20 only guarantees exclusion w.r.t. the base priority,
and not w.r.t. intermediate nice-levels. Correct english and formatting.
1999-08-20 18:09:48 +00:00
cgd f33ac29caa not all kvm_getfiles() errors are "out of memory." for instance,
some of them are caused by the kvm_getfiles() implementation being
TOTALLY BROKEN for dead kernels.  Print out the KVM descriptor's
error so that error causes are more easily diagnosed.
1999-08-19 06:13:09 +00:00
mycroft b6fad0e324 Make the group list format consistent between `id' and `id userid'. Also make
it look like what Solaris and Linux use (comma but no space between items).
1999-08-17 17:37:32 +00:00
enami d8ad2663a8 In name section, use .Dq macro rather than writing double quote directly. 1999-08-17 03:36:35 +00:00
simonb 299578ebd5 Spell "privilege" correctly (correct spelling from Jonathan Stone). 1999-08-16 02:59:22 +00:00
enami f6e5e6544e Always unlink the temporary file created by mkstemp(3). 1999-08-16 02:49:20 +00:00
sjg 84a0eb9650 Add support for multiple locate databases via $LOCATE_PATH and/or
command line switch.
Also exit(0) only if a match is found.
1999-08-16 01:41:16 +00:00
proff 209c8a802a ctrl-g is beep(), not "^G", damnit. strictly for the attention deprived. 1999-08-13 13:52:59 +00:00
tron c8b0d04949 Fix wrong array size calculation in call to memset() and avoid a possible
segmentation fault in memmove(). Patches supplied by Stephan Thesing in
PR bin/8184.
1999-08-10 20:09:02 +00:00
aidan 58f27ba58c Added .PARSEDIR and .PARSEFILE variables to make(1). 1999-08-09 21:06:28 +00:00
thorpej 2d720e5ff0 Don't truncate syscall return values on LP64 platforms. 1999-08-06 00:11:02 +00:00
ross 7886a593e3 Back out part of previous, only the parse.c mod was intended. 1999-08-04 16:44:07 +00:00
ross 0728723c31 Trivial speed hack. 1999-08-04 02:54:56 +00:00
jdolecek 88a653ac21 add support for ntfs 1999-08-02 17:39:13 +00:00
ad aa707bd962 Add 'inet.' prefix to 'tcp', 'ip', 'tcpsyn' and 'icmp' displays.
Fixes PR: bin/8130 (Geoff C. Wing)
1999-08-02 17:27:27 +00:00
hubertf 5674691260 Save the walls, use fly swatters instead of machine guns!
(s/sscanf/strtol/, per Christos)
1999-08-02 17:23:58 +00:00
hubertf a38c426e1c Detect invalid arguments to -j and -L by using sscanf() instead of atoi().
Fixes PR 6743 by Assar Westerlund <assar@sics.se>
1999-08-02 15:23:11 +00:00
sommerfeld cb8819d25b Serious fix for the silly and flippant PR7875 which preserves the
original silly spirit of the man page.
1999-08-02 12:41:20 +00:00
sommerfeld 728f40d730 Fix from PR7655: translation of keyboard command in systat is Wrong.
(breaks netstat's :ignore command for upper-case service names)
1999-08-02 02:01:57 +00:00
kleink 1cc052ce00 Rearrange the shared library search path precedences to LD_LIBRARY_PATH >
runpath > built-in default; this is the behaviour of the SVR4 shared loader,
and gives users the opportunity to override the runpath.  (Addresses a report
on current-users by John Kohl.)
1999-08-01 19:47:07 +00:00
lukem 8e17c17112 fix problem with www authentication: len passed to snprintf() for
auth_url() strings was 1 too small. noted by veego@
1999-08-01 12:22:23 +00:00
sommerfeld 0c41be440f Add `-U' flag (for "unprivileged"). Currently just skips the
chown/chgrp stages which would otherwise blow out if not running as
root.  A future version may log the owner/group to allow correction by
a later privileged cleanup pass.

Just warn about madvise failure; it's not something to blow up about.

Document new option, and clean up option grouping for -d (install
directory) option.
1999-08-01 05:02:06 +00:00
christos 022cc95f70 Document kernel behaviour: flags on block and character devices cannot
be changed except by the superuser. [Commit by cjs.]
1999-07-31 03:24:46 +00:00
ad 5cd8715136 Formatting nits. 1999-07-30 16:08:59 +00:00
darrenr c1f203f8b5 Change behaviour from running the command as the parent and ktrace/ktruss as
the child to be ktruss/ktrace is the parent.  This fixes a problem with ktruss
where the prompt would be returned in the middle of output.
1999-07-30 14:03:55 +00:00
hubertf 693fcfea31 s/uname -p/uname -m/ of course. Noted by Simon Burge. 1999-07-30 11:44:57 +00:00
itojun 5413fa8362 do not include netinet/in6_systm.h, which has been empty for a while. 1999-07-30 10:31:22 +00:00
mycroft a18e0fb5ab Use exec. 1999-07-30 02:42:32 +00:00
hubertf 7efd5195db Shell script implementation of "machine" by me.
I hereby place this into the public domain, the script contains
no copyright header to make it small. Replacing the binary
implementation saves 8k on /usr.

See also PRs 6614 and 361.
1999-07-30 02:07:15 +00:00
mycroft ee0dfce003 Make this compile again in an ELF world. 1999-07-30 01:56:49 +00:00
hubertf 4b53c6d85d If printing of a host's time is requested via the -d switch, condense
output so it doesn't exceed 80 columns.

Patch submitted in PR 5933 by Tim Rightnour <root@garbled.net>
1999-07-30 01:29:30 +00:00
hubertf d5df2197fb sprite.h is private to make, so #include it with "sprite.h",
not <sprite.h>.

Problem reported in PR 4381 bye Soren S. Jorvang <soren@t.dk>
1999-07-29 19:45:32 +00:00
enami 095b98a6ab call clearerr for the right file pointer. 1999-07-29 01:53:26 +00:00
darrenr 57c66d8b8b fix an error where we attempt to bcopy to a long's value rather than address 1999-07-28 15:38:46 +00:00
abs 8714299f16 Add -N option (numeric host address) - idea taken from FreeBSD.
Fix bug where -E8 would still pick up 0xFF as escape (again from FreeBSD)
1999-07-28 06:35:15 +00:00
enami 4191a1e6d4 - remove duplicated setting for LDSTATIC in ktruss/Makefile.
- fix command name in SYNOPSIS section of man page.
- link ktrace man page to ktruss man page.
- add executable and man page for ktruss in distrib sets.
1999-07-28 01:56:03 +00:00
christos 3b943b9c88 declare EXITSTRING 1999-07-26 06:19:01 +00:00
itohy 2b46b2b820 Eliminate illegal cast from function pointer (sig_t) to object pointer (void *). 1999-07-26 01:49:09 +00:00
christos edac4bd44f fix SDEAD problems. 1999-07-23 18:40:27 +00:00
veego bb1198e9ee According to the previous commit the new process state should be SDEAD and
not SDYING, so s/SDYING/SDEAD/.
And add the new element "dying" to the state_abbrev array.
XXX Is is correct to have two elements with the number 3 in sorted_state?
1999-07-23 09:01:09 +00:00
veego 03fd106af5 According to the previous commit the new process state should be SDEAD and
not SDYING, so s/SDYING/SDEAD/.
1999-07-23 08:56:13 +00:00
itohy 17cd5b4ec1 Fix memory-related problems.
Other problems remain, though....
1999-07-23 03:12:31 +00:00
itohy 99624b0b6d Fix fowllowing problems:
1. If fork()ing, the program is executed twice.
2. If the ktruss(1) output is bufferd, the final output is not flushed
   (because it is executing).

    % ktrace -f - rm >/dev/null
    usage: rm [-dfiPRrW] file ...
    usage: rm [-dfiPRrW] file ...
    % ktruss date | cat
    Fri Jul 23 12:09:45 JST 1999
    Fri Jul 23 12:09:46 JST 1999
    %
1999-07-23 03:10:49 +00:00
thorpej 3586621927 Update for SDEAD. 1999-07-22 18:16:05 +00:00
kleink 6546b1feed Try $TMPDIR first, then fall back to _PATH_TMP. 1999-07-22 15:09:45 +00:00
itohy b70a1b7220 A caught signal is blocked in the handler and
must be unblocked to do the default action.
The old code may generate weird exit status
on signals.
1999-07-22 03:02:36 +00:00
kleink fbfc6d0d28 Rather than hardcoding _PATH_TMP (and relying on const string concatenation),
try TMPDIR (if set in the environment).
1999-07-21 15:20:55 +00:00
jtk be9d0297fd fix handling of port number preceded by minus sign to restore documented behavior 1999-07-21 13:24:56 +00:00
cgd b02d81404c avoid repeated error messages by making bytes(), lines() and rlines() return
meaningful values, which can then be checked to avoid another error message.
1999-07-21 06:38:49 +00:00
itojun 31055e9319 cleanup EPSV return code checking part.
remove debug fputs() left by mistake.
1999-07-20 17:52:03 +00:00
mrg ba255f8a34 optionally include CRYPTOPATH Makefile.frag files. 1999-07-20 09:47:07 +00:00
mrg 51a96a002f optionally include CRYPTOPATH Makefile.frag files. 1999-07-20 09:35:18 +00:00
kleink 13ca730983 Mention -iregex and -regex primaries being non-standard extensions. 1999-07-20 09:02:24 +00:00
cgd 91ff0a1b87 add -regex and -iregex primaries which, like GNU find's primaries of the
same name, match files' entire paths against regular expressions.
-regex is case sensitive, -iregex is case-insensitive.  Note that these
primaries are _not_ entirely compatible with the GNU find primaries,
because their BREs appear to support alternation with \| whereas our BREs
do not.  Also note there are no primaries which provide extended regular
expressions matching, though if they are desired they would be trivial
to implement.
1999-07-20 01:28:41 +00:00
itojun a382c0c34d avoid false warnings on 22x reply code checks. previous code was too picky.
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
1999-07-17 22:39:18 +00:00
christos 6653fa8b3c How did this bug survive for so long? 'who am i' was busted because
it checked for valid utmp entries with usr.ut_name != NULL which can
never happen ofcourse, instead of usr.ut_name[0] != '\0'
1999-07-17 16:41:44 +00:00
ad 77895f938d - cdplay(1) first appeared in 1.5.
- correct date on manpage.
1999-07-16 14:15:49 +00:00
christos 10e7b7f04d Fix extreme brokeness with job control that appeared when we set USE_PGRP. 1999-07-16 05:38:20 +00:00
wrstuden f61cc70c2c Make these files use bsd.hostprog.mk so you can cross-compile tn3270! 1999-07-14 21:36:36 +00:00
itojun 6ae77d03dc clarify socket-connect trial loop. fix freeaddrinfo().
adjust indentation (commands.c uses sw=4 ts=8).
1999-07-14 20:47:41 +00:00
itojun 1e44889b75 implement more fallback case for EPSV. BSDI ftpd is very broken
that it returns status 228 against EPSV, where it must return status
of 229.

separate PASV and LPSV processing.

PR: 7976
1999-07-13 21:43:31 +00:00
kleink 8731671861 If not specified on the command line, attempt to fall back to the environment
variables AUDIODEVICE (for -d) and AUDIOCTLDEVICE (for -C, already used in
audioctl(1)) before falling back to _PATH_* constants.
1999-07-13 14:02:33 +00:00