mount by label first - more useful in real life

SVN revision: 40566
This commit is contained in:
Carsten Haitzler 2009-05-09 10:26:12 +00:00
parent f318289b2c
commit 3036531147
1 changed files with 3 additions and 3 deletions

View File

@ -382,10 +382,10 @@ e_fm2_hal_volume_mountpoint_get(E_Volume *v)
return strdup(v->mount_point);
}
if (v->uuid && v->uuid[0] != '\0')
snprintf(buf, sizeof(buf) - 1, "/media/%s", v->uuid);
else if (v->label && v->label[0] != '\0')
if (v->label && v->label[0] != '\0')
snprintf(buf, sizeof(buf) - 1, "/media/%s", v->label);
else if (v->uuid && v->uuid[0] != '\0')
snprintf(buf, sizeof(buf) - 1, "/media/%s", v->uuid);
else if ((v->storage) && (v->storage->serial) && v->storage->serial[0] != '\0')
snprintf(buf, sizeof(buf) - 1, "/media/%s", v->storage->serial);
else