mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 02:01:03 +00:00
Minor fix for sysv
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6487 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b948f2c63c
commit
e544b6e2bf
2 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2000-04-20 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Tools/gdomap.c: Don't do chdir/chroot on sysv - it screws up
|
||||||
|
their streams so we can't handle incoming connections.
|
||||||
|
|
||||||
2000-04-20 Richard Frith-Macdonald <rfm@gnu.org>
|
2000-04-20 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSCalendarDate.m: Fix memory leak when initialising from
|
* Source/NSCalendarDate.m: Fix memory leak when initialising from
|
||||||
|
|
|
@ -2145,10 +2145,15 @@ handle_request(int desc)
|
||||||
* probing, try to select one on the same network to send back.
|
* probing, try to select one on the same network to send back.
|
||||||
* otherwise, respond with the address it was probing.
|
* otherwise, respond with the address it was probing.
|
||||||
*/
|
*/
|
||||||
if (is_local_host(laddr) == 0)
|
if (is_local_host(laddr) == 0
|
||||||
|
|| laddr.s_addr == loopback.s_addr)
|
||||||
{
|
{
|
||||||
for (i = 0; i < interfaces; i++)
|
for (i = 0; i < interfaces; i++)
|
||||||
{
|
{
|
||||||
|
if (addr[i].s_addr == loopback.s_addr)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if ((mask[i].s_addr && addr[i].s_addr) ==
|
if ((mask[i].s_addr && addr[i].s_addr) ==
|
||||||
(mask[i].s_addr && r_info[desc].addr.sin_addr.s_addr))
|
(mask[i].s_addr && r_info[desc].addr.sin_addr.s_addr))
|
||||||
{
|
{
|
||||||
|
@ -3335,11 +3340,13 @@ printf(
|
||||||
{
|
{
|
||||||
setuid (-1);
|
setuid (-1);
|
||||||
}
|
}
|
||||||
|
#if !defined(__svr4__)
|
||||||
/*
|
/*
|
||||||
* As another level of paranoia - restrict this process to /tmp
|
* As another level of paranoia - restrict this process to /tmp
|
||||||
*/
|
*/
|
||||||
chdir("/tmp");
|
chdir("/tmp");
|
||||||
chroot("/tmp");
|
chroot("/tmp");
|
||||||
|
#endif
|
||||||
|
|
||||||
init_probe(); /* Probe other name servers on net. */
|
init_probe(); /* Probe other name servers on net. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue