unix: fix regression in _unix_scan_mount_point
We previously checked for '#' at strlen(out_u->d_name) - 1 here. So just
go ahead and do (sane %ta) on the whole out_u->d_name.
@@ -590,10 +590,12 @@ _unix_scan_mount_point(u3_unix* unx_u, u3_umon* mon_u)
}
}
else {
+ c3_w lod_w = strlen(out_u->d_name);
+
if ( '.' != out_u->d_name[len_w]
|| '\0' == out_u->d_name[len_w + 1]
- || '~' == out_u->d_name[strlen(out_u->d_name) - 1]
- || !_unix_sane_ta(unx_u, out_u->d_name, len_w) )
+ || '~' == out_u->d_name[lod_w - 1]
+ || !_unix_sane_ta(unx_u, out_u->d_name, lod_w) )
{
c3_free(pax_c);
continue;
