- if (strlen(spec) >= sizeof(hostdir)) {
- nfs_error(_("%s: excessively long host:dir argument\n"),
- progname);
- return 0;
- }
- strcpy(hostdir, spec);
- if (parse_devname(hostdir, &hostname, &dirname)) {
- nfs_error(_("%s: parsing host:dir argument failed\n"),
- progname);
- return 0;
- }
-
- if (!fill_ipv4_sockaddr(hostname, &addr))
- return 0;
- if (!get_my_ipv4addr(ip_addr, sizeof(ip_addr)))
- return 0;
-
- /* add IP address to mtab options for use when unmounting */
- s = inet_ntoa(addr.sin_addr);