Mercurial > trustbridge
changeset 195:90cf655a4112
Ignore parent ("..") on directory scan.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Wed, 26 Mar 2014 11:35:46 +0100 |
parents | d4e97c9b199f |
children | 642d81594665 |
files | cinst/mozilla.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cinst/mozilla.c Wed Mar 26 11:25:03 2014 +0100 +++ b/cinst/mozilla.c Wed Mar 26 11:35:46 2014 +0100 @@ -223,7 +223,8 @@ confbase, mozdirname, mozdirent->d_name); - if (port_isdir(path)) + if (port_isdir(path) + && (strcmp(mozdirent->d_name, "..") != 0)) { snprintf(path, LINEBUFLEN, "%s/%s/%s/%s", confbase,