| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In addition to adding `static' where possible:
- bin/date: Move `retval' into extern.h to make it visible to date.c.
- bin/ed: Move globally used variables into ed.h.
- sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings.
- usr.bin/calendar: Remove unneeded variables.
- usr.bin/chat: Make `line' local instead of global.
- usr.bin/elfdump: Comment out unneeded function.
- usr.bin/rlogin: Use _Noreturn instead of __dead2.
- usr.bin/tset: Pull `Ospeed' into extern.h.
- usr.sbin/mfiutil: Put global variables in mfiutil.h.
- usr.sbin/pkg: Remove unused `os_corres'.
- usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
|
|
|
|
|
|
|
|
|
|
| |
The index() and rindex() functions were marked LEGACY in the 2001
revision of POSIX and were subsequently removed from the 2008 revision.
The strchr() and strrchr() functions are part of the C standard.
This makes the source code a lot more consistent, as most of these C
files also call into other str*() routines. In fact, about a dozen
already perform strchr() calls.
|
|
|
|
|
|
|
| |
temporary variable on the stack and then copy that into the output buffer
so that the htons() conversions use aligned accesses.
MFC after: 1 month
|
|
|
|
| |
by not bothering to include its API.
|
|
|
|
| |
needed.
|
|
|
|
| |
Tested with: make universe
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
rlogin work properly without COMPAT_43.
Obtained from: NetBSD (mycroft)
|
| |
|
|
|
|
|
|
| |
for ages, and no-one seems to have noticed. Viva PAM!
Fix some easy/trivial warnings while I'm here.
|
|
|
|
|
|
| |
``.'' is not a sentence termination, it must be escaped to be put inside
quotes.
Abort if execv() fails by adding err(). Do not dot terminate error messages.
|
|
|
|
|
| |
deprecated 4.2/4.3BSD wait union. Fix some nearby pid_t/int
confusion.
|
| |
|
|
|
|
| |
Sponsored by: DARPA, NAI Labs
|
|
|
|
| |
unused includes.
|
|
|
|
|
| |
o use ansi function definitions
o remove OLDSUN
|
| |
|
|
|
|
|
| |
the parent from sending SIGURG itself to the child. This fixes the
problem of occasionally failing to pass the window size.
|
|
|
|
| |
[rlogin.c] Make the usage message match the code.
|
|
|
|
| |
getopt returns -1 not EOF.
|
| |
|
|
|
|
|
|
|
|
|
| |
Current getaddrinfo() implemetation has a problem of too much resolving
waiting time on INET6 enabled systems.
-4 and -6 options can limit name resolving address family and is a possible
workaround for the problem.
Approved by: jkh
|
|
|
|
|
|
|
|
|
|
|
|
| |
-inetd
-rshd
-rlogind
-telnetd
-rsh
-rlogin
Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
the new -i option were missing.
Fixed style bugs in previous commit:
(1) initialisation of a local variable in its declaration.
(2) inconsistency of (1) with style of nearby code.
(3) disorder of declaration for (1).
(4) a line longer than 80 characters.
(5) bitrot in the printf() -> err() cleanups to help bloat the line in (4).
|
|
|
|
|
|
|
|
|
| |
local "login" name for rcmd(3). This is particularly useful for things
like portslave and other packages with terminal server functionality
where a login can either run ppp locally or get shunted off to another
box via rlogin depending on radius authentication etc. Quite often the
local box doesn't even have accounts, so a flag such as this is needed.
Obviously this is restricted to callers with uid == 0.
|
| |
|
|
|
|
|
|
|
|
| |
announced a K4 weakness with their rsh/rlogins. We were not put in any
danger by this, as we were not using KTH rlogin/rsh, but the patches
in themselves, had some good points. This lot means we can run our
rlogin without it being SUID root. Win win win. There are other KTH
cleanups as well.
|
|
|
|
| |
Also quieten -Wall a bit.
|
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
| |
posix standard on the topic.
|
|
|
|
|
|
| |
for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2
or __pure2 where it wasn't already done, except in math.h where use
of __pure was mostly wrong.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Kerberos obtains a network address for the local host from the routing
tables and uses it consistently for all Kerberos transactions. This ensures
that packets only leave the *authenticated* interface. Clients who open
and use their own sockets for encrypted or authenticated correspondance
to kerberos services should bind their sockets to the same address as that
used by kerberos. krb_get_local_addr() and krb_bind_local_addr() allow
clients to obtain the local address or bind a socket to the local address
used by Kerberos respectively.
Reviewed by: Mark Murray <markm>, Garrett Wollman <wollman>
Obtained from: concept by Dieter Dworkin Muller <dworkin@village.org>
|
|
|
|
|
|
|
| |
I do some digging out on this subject and found that remote
rlogind may reduce big speeds to 38400 by itself and (as more often
rlogind variant) speed setting ioctl fails, so speed left on 9600.
In all cases it doesn't do any real harm.
|
|
|
|
| |
Remote rlogind may not understand speeds > 38400.
|
| |
|
| |
|
|
|
|
| |
assumption about the implementation of des_read/des_write.
|
|
|
|
| |
Add entries for the speed 57600 and 115200 to the allowed speeds.
|
|
|