mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
interface.c: Fix for AIX4.x finding interfaces.
server.c: Subtle fix for filenames containing ':'. Jeremy (jallison@whistle.com)
This commit is contained in:
parent
87d17af008
commit
ee9f57bab2
@ -154,7 +154,7 @@ static void get_broadcast(struct in_addr *if_ipaddr,
|
||||
}
|
||||
}
|
||||
}
|
||||
#elif defined(__FreeBSD__) || defined(NETBSD) || defined(AMIGA)
|
||||
#elif defined(__FreeBSD__) || defined(NETBSD) || defined(AMIGA) || defined(_AIX41)
|
||||
ifc.ifc_len = sizeof(buff);
|
||||
ifc.ifc_buf = buff;
|
||||
if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) {
|
||||
|
@ -397,7 +397,7 @@ static BOOL scan_directory(char *path, char *name,int snum,BOOL docache)
|
||||
if (!name_map_mangle(name2,False,snum)) continue;
|
||||
|
||||
if ((mangled && mangled_equal(name,name2))
|
||||
|| fname_equal(name, name2))
|
||||
|| fname_equal(name, dname))
|
||||
{
|
||||
/* we've found the file, change it's name and return */
|
||||
if (docache) DirCacheAdd(path,name,dname,snum);
|
||||
@ -2102,7 +2102,7 @@ static BOOL open_sockets(BOOL is_daemon,int port)
|
||||
/* ready to listen */
|
||||
if (listen(s, 5) == -1)
|
||||
{
|
||||
DEBUG(0,("listen: %s",strerror(errno)));
|
||||
DEBUG(0,("listen: %s\n",strerror(errno)));
|
||||
close(s);
|
||||
return False;
|
||||
}
|
||||
@ -2122,7 +2122,7 @@ static BOOL open_sockets(BOOL is_daemon,int port)
|
||||
|
||||
if (Client == -1)
|
||||
{
|
||||
DEBUG(0,("accept: %s",strerror(errno)));
|
||||
DEBUG(0,("accept: %s\n",strerror(errno)));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user