smbmount compile error
Irish
irish at disorg.net
Fri Feb 22 09:03:08 GMT 2002
Hello,
I am using (essentially) slackware 7+, and when I try to compile 2.2.3a with
"--with-smbmount" it fails with the following;
client/smbmount.c: In function `close_our_files':
client/smbmount.c:97: storage size of `limits' isn't known
client/smbmount.c:99: `RLIMIT_NOFILE' undeclared (first use in this function)
The codeblock in question is:
static void close_our_files(int client_fd)
{
int i;
struct rlimit limits;
getrlimit(RLIMIT_NOFILE,&limits);
for (i = 0; i< limits.rlim_max; i++) {
if (i == client_fd)
continue;
close(i);
}
}
Any ideas on how to fix this so I can mount shares would be much appreciated.
Thank you!
Shannon
More information about the samba-technical
mailing list