search fstab for mount points with trailing slash too.

This commit is contained in:
wbaumann
2010-05-04 20:19:22 +00:00
parent b720dc467c
commit 78f56f4b3c
2 changed files with 11 additions and 0 deletions

View File

@ -682,6 +682,12 @@ check_fstab(const dav_args *args)
setfsent();
struct fstab *ft = getfsfile(mpoint);
if (!ft) {
char *mp = NULL;
if (asprintf(&mp, "%s/", mpoint) < 0) abort();
ft = getfsfile(mp);
if (mp) free(mp);
}
if (!ft || !ft->fs_spec)
error(EXIT_FAILURE, 0, _("no entry for %s found in %s"), url,
_PATH_FSTAB);