e fm prop: follow relative symbolic links before tagging them broken.

SVN revision: 74881
This commit is contained in:
Chidambar Zinnoury 2012-08-05 08:55:59 +00:00
parent f22bb9362e
commit b196e15bed
1 changed files with 9 additions and 1 deletions

View File

@ -1092,7 +1092,15 @@ _e_fm_ipc_file_add_mod(E_Dir *ed, const char *path, E_Fm_Op_Type op, int listing
if ((path[0] == 0) || (lnk)) broken_lnk = 1;
else return;
}
if ((lnk) && (lnk[0] != '/')) rlnk = ecore_file_realpath(path);
if ((lnk) && (lnk[0] != '/'))
{
rlnk = ecore_file_realpath(path);
if ((rlnk == NULL) || (rlnk[0] == 0) ||
(stat(rlnk, &st) == -1))
broken_lnk = 1;
else
broken_lnk = 0;
}
else if (lnk)
rlnk = strdup(lnk);
if (!lnk) lnk = strdup("");