|
|
| |
/* Handle "supermount" filesystem mounts */ | /* Handle "supermount" filesystem mounts */ |
if ( SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0 ) { | if ( SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0 ) { |
tmp = SDL_strstr(mntent->mnt_opts, "fs="); | tmp = SDL_strstr(mntent->mnt_opts, "fs="); |
if ( tmp ) { | if ( tmp ) { |
SDL_free(mnt_type); |
SDL_stack_free(mnt_type); |
mnt_type = SDL_strdup(tmp + SDL_strlen("fs=")); | mnt_type = SDL_strdup(tmp + SDL_strlen("fs=")); |
if ( mnt_type ) { | if ( mnt_type ) { |
tmp = SDL_strchr(mnt_type, ','); | tmp = SDL_strchr(mnt_type, ','); |
if ( tmp ) { | if ( tmp ) { |
*tmp = '\0'; | *tmp = '\0'; |
} | } |
} | } |
} | } |
tmp = SDL_strstr(mntent->mnt_opts, "dev="); | tmp = SDL_strstr(mntent->mnt_opts, "dev="); |
if ( tmp ) { | if ( tmp ) { |
SDL_free(mnt_dev); |
SDL_stack_free(mnt_dev); |
mnt_dev = SDL_strdup(tmp + SDL_strlen("dev=")); | mnt_dev = SDL_strdup(tmp + SDL_strlen("dev=")); |
if ( mnt_dev ) { | if ( mnt_dev ) { |
tmp = SDL_strchr(mnt_dev, ','); | tmp = SDL_strchr(mnt_dev, ','); |
if ( tmp ) { | if ( tmp ) { |
*tmp = '\0'; | *tmp = '\0'; |