skrll
39aae79d93
Bring across a change from FreeBSD from back in 1998:
...
"Fix a bug that showed up when debugging dynamically linked programs.
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."
"printf" isn't true for us, but various libc symbols are, e.g. "malloc".
Fixes PR 32074 as noted by uwe@
OK'd by christos@
2006-01-12 22:40:17 +00:00
uwe
a35d2a5b09
Add some comments.
2006-01-11 22:24:34 +00:00
uwe
e7102691a2
Kill trailing whitespace.
...
Indent delay slots.
2006-01-11 22:05:27 +00:00
uwe
b98cf46363
_GLOBAL_OFFSET_TABLE_ is only used if RTLD_DEBUG, so wrap its
...
declaration too.
32-bit SuperH can not pretend that _GLOBAL_OFFSET_TABLE_ is a normal
variable, because of the way PIC variable references is generated, but
as compiler arranges for _GLOBAL_OFFSET_TABLE_ address to be in r12
anyway, just use that value by declaring it as a global register
variable. Makes sh3 compile with RTLD_DEBUG.
2006-01-11 21:40:12 +00:00
christos
7f94fc6d62
PR/25605: Frank Kardel: getty leaves ttymodes at read login state when
...
exec-ing pppd. Fixed as suggested.
2005-12-28 09:43:05 +00:00
perry
0db47b5ca1
bare asm -> __asm
2005-12-24 21:51:51 +00:00
perry
ae6ae2c362
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
2005-12-24 20:56:41 +00:00
lukem
03353d54d6
NLST should return 450 instead of 550 upon error, per RFC 959.
2005-11-24 23:47:23 +00:00
christos
ef66965d63
Deal with fts errors properly.
2005-11-18 17:12:09 +00:00
christos
8f1498a599
- Don't use a stale errno when printing an error
...
- Redo all error printing using varargs
- KNF
- More descriptive error messages
2005-10-31 16:15:42 +00:00
christos
1cb716844a
Don't use hard-coded values for nobody. Specially ones that don't match
...
what /etc/group has.
2005-10-31 15:46:50 +00:00
skrll
bd7cbb198e
Correct the lookup order of _rtld_symlook_default and make
...
_rtld_find_symdef use _rtld_symlook_default.
This reduces the code size and means that dlsym(RTLD_DEFAULT,...) has the
correct lookup order.
Reviewed by kleink. Thanks.
2005-10-13 11:14:09 +00:00
lukem
d7a2bc3a39
logxfer(): don't use the same buffer to store the results of two separate
...
concurrent realpath(3)s, otherwise we'll log the wrong information
for a rename.
Noted by Dmitry Sivachenko in private mail.
2005-10-03 00:02:25 +00:00
lukem
7ea2be42e0
Fix comment about DEFAULT_UMASK.
...
Pointed out in private mail by Tetsuya Isaki and Dmitry Sivachenko.
2005-10-02 23:03:04 +00:00
chs
0c6e4dbbc4
ok, the change from rev 1.33 was unnecessary after all,
...
only the second part of the previous revision was needed.
put the logic for the initial icache invalidation of the PLT
back the way it was, but in a way that makes clearer what's going on,
and add some comments explaining it.
2005-09-27 07:20:32 +00:00
chs
96fb424f44
fix two problems with icache invalidation of the PLT:
...
- restore revision 1.33, it was correct.
- fix pointer arithmetic in other calls to __syncicache().
2005-09-26 05:45:13 +00:00
tron
19577e1cae
Reject unformatted manual pages with "[" characters in the description
...
because "makewhatis" cannot handle nroff macros properly. This fixes
the result of "apropos chrtbl". Problem pointed out by wizd(8)
in private e-mail.
2005-09-15 14:20:01 +00:00
wiz
0768214245
Remove duplicate line. From YOMURA Masanori in private mail.
2005-09-11 23:31:46 +00:00
wiz
03f5a25275
Fix typo.
2005-09-10 22:18:27 +00:00
elad
83057dc7cc
Don't chown/unlink uninitialized lockfile if not uugetty.
...
From Dr. Wolfgang Stukenbrock, PR/31040.
2005-09-10 21:29:36 +00:00
ginsbach
818f7caa4b
* Add recvbufsize configuration option
...
This allows for setting the passive socket's SO_RCVBUF. Option works
similarly to the current sendbufsize configuration option.
* Change how recveive_data() works
When reading data from the socket for passive transfers to the server,
receive_data() now works very similar to send_data_with_read(). Reads
from the network are now done using either the filesystem block size or
the configuration option readsize chunks.
* Crank version.h
[Changes discussed with lukem.]
2005-08-24 15:51:41 +00:00
christos
fdd5a2fbdd
Change PRiu64 with a cast and %llu. I am not using PRIu32 and no cast for
...
now. I will do so in a separate pass that will fix all the inode printing.
2005-08-23 05:55:29 +00:00
skrll
680596d08e
Add __RCSID.
2005-08-20 19:01:16 +00:00
kent
8dbae00531
fix compilation problem on LP64
2005-08-20 14:58:34 +00:00
christos
d05efd58f3
64 bit inode changes.
2005-08-19 02:06:29 +00:00
skrll
9f486044a0
KNF
2005-08-15 10:52:42 +00:00
wiz
d531be345e
Sort options.
2005-08-07 11:13:34 +00:00
peter
1723484e06
Implement option "-D", for running ftpd in standalone mode (daemon).
...
ftpd will listen on the default FTP port for incoming connections and fork
a child for each connection. This is lower overhead than starting ftpd from
inetd(8) and thus might be useful on busy servers to reduce load.
Inspired by FreeBSD.
Reviewed by lukem@.
2005-08-04 17:41:35 +00:00
christos
5ef1593468
Cleanup and make the arrays dynamically resizable. This will help for
...
only version 3, because version 2 is still artificially limited to MAXUSERS.
2005-08-01 21:08:34 +00:00
skrll
5f0dd3a852
Add support for immediate PLT binding on SH5. Compile tested only as
...
shared libs don't actually work on SH5 (yet).
OK'd by Steve Woodford.
2005-07-28 12:35:21 +00:00
skrll
57e00bf69e
Support immediate PLT binding on powerpc. Thanks to Simon Burge for
...
testing.
I can see the finish line...
2005-07-28 10:54:30 +00:00
skrll
56d4febf60
Support immediate PLT binding on m68k. Tested on NetBSD/sun3 using the new
...
version of tme.
Not far now...
2005-07-26 15:43:34 +00:00
lukem
81d2b1e480
Crank version for Christos' utmpx/wtmpx changes on 20050623
2005-07-26 05:43:07 +00:00
skrll
51c5e03c82
Support immediate PLT binding on vax. Tested on simh.
...
Nearly there...
2005-07-24 08:02:23 +00:00
christos
70b85ad925
Don't do things you are not supposed to inside a signal handler.
2005-07-18 04:01:33 +00:00
skrll
16044f3d38
Support immediate binding on x86_64.
...
Closes PR 30570. Thanks to TAMURA Kent for testing.
2005-07-17 05:57:21 +00:00
christos
286ad449da
sprinkle little const.
2005-06-26 20:47:08 +00:00
christos
ea7965eb77
cleanup utmp and utmpx support.
...
- make them symmetric
- add a function to open the wtmp file explicitly very early in the game
2005-06-23 04:20:41 +00:00
lha
3baf9430ad
Remove static local variable so its easier to correctly use strlcpy.
2005-06-21 22:29:53 +00:00
peter
f1cc466245
Add RCSID.
2005-06-14 12:18:24 +00:00
peter
23b24500dc
Minor cleanup:
...
- remove the silly limit of 490 chars in change_format
- improve the timeout message
- delint (where it makes sense)
2005-06-14 12:17:13 +00:00
fair
af23ff4dbb
appease gcc -Wuninitialized
2005-06-08 00:19:18 +00:00
he
7ed57630be
Initialize a bunch of local variables in _rtld_relocate_nonplt_self().
...
Found by -Wuninitialized while compiling for newsmips.
Reviewed by lukem.
2005-06-07 09:20:19 +00:00
chs
7bbdd188e1
appease gcc -Wuninitialized on hp700.
2005-06-05 19:08:28 +00:00
lukem
3ed9ffcae1
Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
...
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
2005-06-04 16:17:17 +00:00
lukem
d066333b1b
Ensure IF is initialized before trying to use it.
...
Found with -Wuninitialized.
2005-06-01 15:57:40 +00:00
lukem
c76b26e527
Shouldn't use += on a variable that we haven't initialized yet ...
...
Found with -Wuninitialized.
2005-06-01 15:55:31 +00:00
lukem
818f7c82fa
appease gcc -Wuninitialized
2005-06-01 15:51:23 +00:00
lukem
a8ce874400
Ensure rval is initialized before we try to check it; it won't be set
...
if AL or NN are in use.
Detected with gcc -Wuninitialized.
2005-06-01 15:50:00 +00:00
lukem
a50c8ab399
Add some sanity checking inspired by gcc -Wuninitialized.
2005-06-01 14:57:22 +00:00
lukem
a12d17494d
appease gcc -Wuninitialized
2005-06-01 14:14:55 +00:00
skrll
9c5ec319c5
Support LD_BIND_NOW on sh3..
2005-05-31 19:30:38 +00:00
skrll
13901ecdef
Support LD_BIND_NOW for alpha.
2005-05-25 13:39:46 +00:00
christos
057e8f6aa6
Support VEOL2 and VSTATUS
2005-05-21 17:18:51 +00:00
skrll
504512d318
Copyright maintenance.
2005-05-21 06:43:39 +00:00
peter
9641151edb
Remove the zombie reaper and set SIG_IGN on SIGCHLD. We won't get a zombie
...
when the child exists this way and it should also fix the race condition
as mentioned in PR bin/30253 from Patrick McPhee.
Approved by christos.
2005-05-18 00:31:32 +00:00
chs
14480c4191
in _rtld_is_exported(), use a function pointer type instead of Elf_Addr
...
so that hppa knows to do the plabel thang.
2005-05-10 13:15:56 +00:00
christos
a6bb85932c
PR/30170: Markus W Kilbinger: src/libexec/comsat complains about: '/' in
...
"/dev/pts/1"
2005-05-07 23:37:59 +00:00
lukem
2bfc59a549
use _PATH_DEV instead of "/dev/"
2005-05-05 01:28:57 +00:00
christos
467d3a1e76
remove bogus frees on uninitialized variable.
2005-05-03 00:20:17 +00:00
christos
01592c7cfe
not supporting %c is confusing and it only uses up a few bytes.
2005-04-24 21:11:58 +00:00
perseant
2f695b5476
Provide a resize_lfs(8), including kernel and cleaner support. The current
...
implementation requires the fs to be mounted while resizing. Tested in both
directions, and everything appears to work happily, but ymmv.
2005-04-23 19:47:51 +00:00
christos
cce62d0952
check pwd != NULL
2005-04-19 03:22:54 +00:00
christos
857a611be2
s/getpwnam/sgetpwnam/ Found by John Nemeth.
2005-04-10 08:21:36 +00:00
peter
914d68e290
Fix a typo; some minor nits and tweaks; add a CAVEATS section which
...
describes where identd needs access to when using certain flags.
2005-04-04 18:43:55 +00:00
wiz
4dd1b491d0
Sync usage with man page.
2005-04-04 08:13:52 +00:00
wiz
0652314a20
Some cleanups, use more markup.
2005-04-04 08:13:27 +00:00
peter
f90aa792d5
Add forward/proxy support to identd(8).
...
Approved by christos.
2005-04-03 22:15:32 +00:00
christos
183cc62f03
Make it parse old man pages, new mdoc pages, broken pages, and pages where
...
the synopsis line does not give us the section number. Add -w flag to print
pages we still don't like. Now we parse 99% of the pages properly.
2005-04-03 21:32:45 +00:00
christos
715420b601
remove debugging printfs.
2005-04-03 20:31:18 +00:00
christos
79519a3a20
Cat pages end up looking like "page -- description", so substitute "--" for
...
the section page. This makes things look right again, and avoids duplicates.
2005-04-03 20:30:39 +00:00
xtraeme
dc7d7d7780
Add missing flags to usage()
2005-03-30 21:28:30 +00:00
christos
8ec5371f02
- use getpwnam_r
2005-03-30 01:33:30 +00:00
christos
2e7a44f29b
- KNF fixes from John Nemeth
...
- Use getpwnam_r because pam may use getpw* and overwrite the static area
(from FreeBSD)
2005-03-30 01:07:47 +00:00
christos
6e498d006d
KNF, WARNS == 3. Reported by John Nemeth
2005-03-27 21:00:58 +00:00
christos
6cb3c8e4eb
Handle printing ptyfs pty names
2005-03-17 01:34:41 +00:00
christos
00e4cd7dc0
print ptyfs ptys properly.
2005-03-17 01:25:40 +00:00
christos
a646be989c
Handle the regular case too, not only the error case.
2005-03-13 01:48:54 +00:00
christos
bb8740ddcf
- Don't call pam functions after pam_end().
...
- Only call wait for our own pid.
- Improve error checking.
- Reorder some code to minimize diffs with FreeBSD.
2005-03-12 18:23:30 +00:00
ginsbach
98d24e6cc9
Remove unnecessary cast.
2005-03-11 16:04:09 +00:00
peter
6e30b59e96
Some minor cleanup:
...
* Improve some comments and (error) messages.
* Use EXIT_FAILURE and EXIT_SUCCESS.
* Add function `maybe_syslog' (only log when -l is enabled).
Reviewed by christos.
2005-03-11 15:49:52 +00:00
wiz
4b98ca48e7
Sort options.
2005-03-09 16:43:37 +00:00
wiz
13966518a6
Bump date for previous, and some minor cleanup while here.
2005-03-09 16:42:49 +00:00
hubertf
f396f9eb19
* Add ssh(1), sshd(8) and hosts_access(5) to SEE ALSO list.
...
(What would one look at for Kerberos?)
* Be a bit more explicit about the security implications of rsh & friends,
as suggested by Steven M. Bellovin and OK'd by Christos Zoulas
2005-03-09 07:49:08 +00:00
christos
ceb0805a9b
Add -lcrypt where -lcrypto is specified.
2005-03-09 03:11:21 +00:00
christos
a2ee5dcfcc
Avoid source routing ip options. Described in:
...
http://www.citi.umich.edu/u/provos/papers/secnet-spoof.txt
2005-03-08 04:35:19 +00:00
he
5152518685
Add -lcrypt to link lines for applications using -lkrb5, so that they
...
link successfully when MKPIC=no, as is always the case for our ports
which do not support shared libraries.
Discussed with thorpej and christos.
2005-03-04 20:44:55 +00:00
he
8e8728c45c
Introduce PAM_STATIC_LDADD and PAM_STATIC_DPADD. When compiling
...
with MKPIC=no, possibly because the target does not support shared
libraries, these include libraries required to resolve all symbols
which end up referenced from PAM-using applications. The libraries
presently required are -lcrypt, -lrpcsvc and -lutil.
Add use of these variables which are currently set up to use PAM,
so that they compile when MKPIC=no.
Also, in the telnetd case, reorder the order of the libraries, so
that libtelnet.a comes before -ltermcap and -lutil, again to fix
link error when MKPIC=no.
Discussed with thorpej and christos.
2005-03-04 20:41:08 +00:00
ginsbach
f0b5287312
* Add hidesymlinks configuration option
...
This adds a -L to all ls command arguments so that the file or directory
the link references is listed rather than the link itself. This was
inspired by IRIX ftpd's -S option.
[Discussed with lukem some time ago.]
* Crank version.h [right Luke? :-)]
2005-03-03 22:19:47 +00:00
christos
aa73cae196
Add a few lines of code to print the output from the remotely executed program.
2005-02-27 01:34:07 +00:00
skrll
f5ee31d050
Update and be more descriptive about one of the machine specific #ifdefs
2005-02-26 22:26:18 +00:00
perseant
6e52bfc264
Various minor LFS improvements:
...
* Adapt lfs_cleanerd to use the fcntl call to get the Ifile filehandle,
so it need not be in the namespace.
* Make lfs_cleanerd be more careful when there are very few available
segments.
* Remove the Ifile from the filesystem namespace. The cleaner now uses
a fcntl call on the root inode to find the Ifile filehandle.
* Make lfs_cleanerd less verbose when the filesystem is unmounted.
2005-02-26 05:43:04 +00:00
christos
81e0d2b0af
Add an example program that tests rexecd... I really don't want to encourage
...
its use though.
2005-02-23 01:27:32 +00:00
christos
62136d5653
PAMify: From John Nemeth with fixes from me.
2005-02-23 01:25:50 +00:00
christos
5029779902
Add pam glue.
2005-02-20 08:52:10 +00:00
christos
216d8f75cc
Add missing goto badlogin; noticed by: Hisashi T Fujinaka
2005-02-20 06:11:51 +00:00
christos
6b2a62b742
PAMify.
2005-02-20 05:45:55 +00:00
christos
99fd5044d3
Add PAM and LOGIN_CAP support. Mostly from FreeBSD. If pam is defined,
...
then we don't fall back to other authentications even if PAM fails due
to a system error (e.g. configuration problem).
2005-02-20 01:45:17 +00:00
agc
f27acbf4fc
Make this compile after the de-__Ping round.
2005-02-06 17:30:33 +00:00
perry
4b90129081
de-__P, ANSIfy function declarations, remove obsolete "register" declarations.
2005-02-06 05:58:20 +00:00