• Marvin Scholz's avatar
    darwin: rewrite mount_get_mountpoint · 406a4302
    Marvin Scholz authored
    Rewrite most of mount_get_mountpoint for Darwin using the
    DiskArbitration API instead of the more low level getfsstat.
    
    This fixes a memory over-read leading to a crash when the system
    has more than 128 mounts.
    
    Additionally it changes the logic a bit, now it is first checked
    if the path exists and is a folder, if that is not the case, try
    to interpret it as BSD mount name, this makes BSD names like 'disk2'
    work (provided there is no folder/image with that name) as expected.
    
    Reported by Collin Allen.
    
    Fix #21
    406a4302
Name
Last commit
Last update
contrib Loading commit data...
doc Loading commit data...
jni Loading commit data...
m4 Loading commit data...
player_wrappers/xine Loading commit data...
src Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
Makefile.am Loading commit data...
README.txt Loading commit data...
bootstrap Loading commit data...
configure.ac Loading commit data...
doxygen-include.am Loading commit data...