This can invalidate otherwise valid source paths with trailing slashes,
such as "host:/" in the case of a network mount.
Based on a patch from Dave Reisner <dreisner@archlinux.org>, which
removed the slash mangling entirely.
Changed it to match on the leading slash to exclude non-path values.
goto finish;
}
- if (is_path(what))
+ if (path_is_absolute(what))
path_kill_slashes(what);
- if (is_path(where))
+ if (path_is_absolute(where))
path_kill_slashes(where);
log_debug("Found entry what=%s where=%s type=%s", what, where, me->mnt_type);