haseq() will return the position after the "=" and while the internal
hasmntopt() that amd provides works with the extra equal, the regular
os ones, don't work. To do:
- remove haseq(); it is not used anywhere now.
- fix our hasmntopt() code to not accept "key="
/* copy option to temp buffer */
xstrlcpy(oneopt, tmpstr, sizeof(oneopt));
/* if option has a value such as rsize=1024, chop the value part */
- if ((eq = haseq(oneopt)))
+ if ((eq = strchr(oneopt, '=')))
*eq = '\0';
/* find reverse option of oneopt */
revoneopt = reverse_option(oneopt);