#3208: Samba installation stores mount.cifs in wrong location
---------------------+------------------------------------------------------
Reporter: jrdavis | Owner: ra...@…
Type: defect | Status: assigned
Priority: normal | Milestone: 6.7
Component: BOOK | Version: SVN
Severity: normal | Keywords:
---------------------+------------------------------------------------------
Comment(by ra...@…):
I'm hoping someone will help me decipher this code from the mount.cifs.c
program source
{{{
/* allow for either delimiter between host and sharename */
if ((share = strpbrk(unc_name, "/\\"))) {
*share = 0; /* temporarily terminate the
string */
share += 1;
if(got_ip == 0) {
rc = getaddrinfo(unc_name, NULL,
NULL, &addrlist);
if (rc != 0) {
fprintf(stderr, "mount
error: could not resolve address for %s: %s\n",
unc_name,
gai_strerror(rc));
addrlist = NULL;
}
}
*(share - 1) = '/'; /* put delimiter back
*/
}}}
and
{{{
flags &= ~(MS_USERS|MS_USER);
addrhead = addr = parse_server(&share_name);
if((addrhead == NULL) && (got_ip == 0)) {
fprintf(stderr, "No ip address specified and hostname not
found\n");
rc = EX_USAGE;
goto mount_exit;
}
}}}
If you `man getaddrinfo' and read about this Glibc function, it implies
that it must do conventional host resolution or a direct IP address. How
would this work if networking was not initialized?
--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/3208#comment:15>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page