PATH_MOUNTTAB
warnx("can't update %s for %s:%s", PATH_MOUNTTAB, host, spec);
if ((mtabfile = fopen(PATH_MOUNTTAB, "w")) == NULL) {
syslog(LOG_ERR, "can't write to %s", PATH_MOUNTTAB);
if (unlink(PATH_MOUNTTAB) == -1) {
syslog(LOG_ERR, "can't remove %s", PATH_MOUNTTAB);
if ((mtabfile = fopen(PATH_MOUNTTAB, "a")) == NULL)
if ((mtabfile = fopen(PATH_MOUNTTAB, "r")) == NULL) {
syslog(LOG_ERR, "can't open %s", PATH_MOUNTTAB);
PATH_MOUNTTAB);