* fix infinite loop in mu-cmd-index (fixes issue #36) + some cosmetics

This commit is contained in:
Dirk-Jan C. Binnema
2011-04-24 16:03:40 +03:00
parent 3b3dc10b67
commit 8f9bd404cf
3 changed files with 12 additions and 10 deletions

View File

@ -98,7 +98,7 @@ mu_util_dir_expand (const char *path)
/* don't try realpath if the dir does not exist */
if (access (dir, F_OK) != 0)
return dir;
/* now resolve any symlinks, .. etc. */
if (realpath (dir, resolved) == NULL) {
g_debug ("%s: could not get realpath for '%s': %s",