| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Patch submitted by: Dan Nelson <dnelson@emsphone.com>
|
|
|
|
| |
PR: docs/10771
|
|
|
|
|
|
|
|
|
|
| |
o main returns int not void
o use return 0 at end of main when needed
o use braces to avoid potentially ambiguous else
o don't default to type int (and also remove a useless register
modifier).
Reviewed by: obrien and chuckr
|
|
|
|
|
|
|
| |
function. It was an ill-considered feature. It didn't solve the
problem I wanted it to solve. And it added Yet Another Version
Number that would have to be maintained at every release point.
I'm nuking it now before anybody grows too fond of it.
|
|
|
|
|
|
| |
_init() functions, initialize the global variables "__progname" and
"environ". This makes it possible for the _init() functions to call
things like getenv() and err().
|
|
|
|
|
| |
shared object takes precedence over LD_LIBRARY_PATH. Make the
dynamic linker do it that way.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the Makefile, and move it down into the architecture-specific
subdirectories.
Eliminate an asm() statement for the i386.
Make the dynamic linker work if it is built as an executable instead
of as a shared library. See i386/Makefile.inc to find out how to
do it. Note, this change is not enabled and it might never be
enabled. But it might be useful in the future. Building the
dynamic linker as an executable should make it start up faster,
because it won't have any relocations. But in practice I suspect
the difference is negligible.
|
|
|
|
|
|
|
|
|
| |
MAXHOSTNAMELEN and call trimdomain() before implementing
the -u option.
This allows local hosts of a lan with a long domain name to
appear properly in utmp by base host name (w/o domain) rather
than by IP number.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
friends are terminated and allow for a maximum
host name length of MAXHOSTNAMELEN - 1.
Put parenthesis around sizeof args.
Make some variables static.
Fix telnetd -u (broken by my last commit)
Prompted by: bde
|
|
|
|
|
| |
it and use brackets for sizeof.
Requested by: bde
|
| |
|
|
|
|
|
|
| |
the dynamic linker in the same form as __FreeBSD_version. This is
mainly intended for checking the dynamic linker version during a make
world.
|
| |
|
|
|
|
|
|
| |
gethostbyaddr() & gethostbyname().
Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length.
|
|
|
|
|
|
|
|
|
|
| |
lookup on the incoming IP, do a forward lookup on
the result and make sure that the IP is in the
resulting list. If it's not, put the IP number
in utmp/wtmp instead of the rogue name.
Stolen from: rlogind
Suggested by: sef
|
|
|
|
|
|
| |
"__deregister_frame_info" problem that was seen when combining a
program linked using the old gcc with shared libraries that were
built using egcs.
|
|
|
|
|
|
|
| |
avoid crashing inside rtld (since it's easy) since everything else handles
it. Of course, if the target program checks argv[], it'll fall over.
Reviewed by: jdp
|
|
|
|
|
|
|
|
|
|
| |
damn useful thing for using with serial consoles in clusters etc or secure
console locations. Using a custom gettytab entry for console with
an entry like 'al=root' means that there is *always* a root login ready on
the console. This should replace hacks like those which go with conserver
etc. (This is a loaded gun, watch out for those feet!)
Submitted by: "Andrew J. Korty" <ajk@purdue.edu>
|
|
|
|
|
|
|
|
|
|
|
| |
There's not much point in having uucpd behave differently than
login(1) for this, and now uucpd is compatible to the default chat
script of Taylor UUCP which sends a single \r at first.
While i was at it, added a few strategic ``errno = 0;''s, so at least
an `Undefined error 0' will be returned for things like a closed
connection while reading the login ID or password, as opposed to an
even more bogus thing like `No such file or directory'.
|
|
|
|
| |
Reviewed by: jdp@FreeBSD.org <This is the version he reviewed!>
|
|
|
|
| |
Reviewed by: jdp@FreeBSD.org
|
|
|
|
| |
PR: 10399
|
|
|
|
|
| |
don't really work if the first one isn't "FreeBSD", and "FreeBSD-Experimental"
isn't an OS name.
|
|
|
|
|
|
| |
accidentally clobbering it.
Submitted by: numberous people on -current
|
|
|
|
|
|
| |
my check of the tree was incomplete. Sorry guys.
Reported by: Ben Smithurst <ben@scientia.demon.co.uk>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
on rshd and rlogind. However, note that:
1: rshd used to drop a connection with -a if the hostname != ip address.
This is unneeded, because iruserok() does it's own checking.
It was also wrong if .rhosts had an explicit IP address in it,
connections would be dropped from that host solely because the DNS was
mismatched even though it was explicitly intended to work by IP address.
2: rlogind and rshd check the hostname mappings by default now because that
is what goes into the utmp/wtmp and logs. If the hostname != ip address,
then it uses the IP address for logging/utmp/wtmp purposes. There isn't
much point logging ficticious hostnames.
3: rshd -a is now accepted (but ignored) for compatability. If you really
want to make life miserable for people with bad reverse DNS, use tcpd in
paranoid mode (which is questionable anyway, given DNS ttl tweaking).
|
|
|
|
|
| |
nasty consequences when the system curses is ncurses as this conflicts
with a ncurses funciton and causes recursion.
|
| |
|
|
|
|
| |
Changed unbounded strcpy() to snprintf() to fix buffer overrun exploit
|
| |
|
|
|
|
|
|
|
| |
net.inet.ip.portrange.hifirst and net.inet.ip.portrange.hilast
PR: docs/6745
Submitted by: Masachika Ishizuka <ishizuka@ish.org>
|
| |
|
|
|
|
|
|
| |
Removed getuid() root check so ntalkd can be run from a tty sandbox.
It isn't suid root anyway, who knows why the getuid() check was even
in there in the first place!
|
|
|
|
|
|
| |
dlopen().
Reviewed by: jdp
|
|
|
|
|
| |
of in "src/usr.bin/login". The latter instance is going away. As
soon as ftpd is PAMized, it won't need to use klogin.c at all.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
rtld would accept the first shared library it found with the right
major version number, even if the minor version number was too low.
If a different version of the shared library with an adequate minor
version number appeared later in the search path, it would not be
found.
Now the rtld searches all locations first looking for a library
with a minor version that is high enough. Only if such a library
is not found will it fall back to accepting a minor version number
that is too low. As before, a warning comes out in that case.
This solves some problems encountered when building an older world
on a -current system.
|
| |
|
|
|
|
|
|
| |
PR: bin/7943 bin/8293
Submitted by: Bill Fenner <fenner@parc.xerox.com>
Approved by: jkh
|
|
|
|
| |
loaded objects wasn't being maintained properly.
|
|
|
|
| |
Submitted by: Matthew Jacob <mjacob@nas.nasa.gov>
|
|
|
|
|
|
| |
mode. (i.e., not from inetd)
PR: bin/8212
|
|
|
|
|
| |
PR: 8094
Submitted by: Christoph Weber-Fahr <wefa@callcenter.systemhaus.net>
|
| |
|
| |
|
|
|
|
| |
Reviewed by: Kenneth D. Merry <ken@plutotech.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
References from GDB to "printf" and various other functions would
find the versions in the dynamic linker itself, rather than the
versions in the program's libc. This fix moves the GDB link map
entry for the dynamic linker to the end of the search list, where
its symbols will be found only if they are not found anywhere else.
It was suggested by Doug Rabson, though I implemented it a little
differently.
I personally would prefer to leave the dynamic linker's entry out
of the GDB search list altogether. But Doug argues that it is
handy there for such things as setting breakpoints on dlopen().
So it stays for now, at least.
Note, if we ever integrate the dynamic linker with libc (which has
several important benefits to recommend it), this whole problem
goes away.
|
|
|
|
|
|
| |
dynamic linker itself dynamically allocated. All of them are
supposed to be dynamically allocated, but we cheated before. It
made gdb unhappy under some circumstances.
|