comparison cinst/mozilla.c @ 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 5d380b662198
comparison
equal deleted inserted replaced
194:d4e97c9b199f 195:90cf655a4112
221 { 221 {
222 snprintf(path, LINEBUFLEN, "%s/%s/%s", 222 snprintf(path, LINEBUFLEN, "%s/%s/%s",
223 confbase, 223 confbase,
224 mozdirname, 224 mozdirname,
225 mozdirent->d_name); 225 mozdirent->d_name);
226 if (port_isdir(path)) 226 if (port_isdir(path)
227 && (strcmp(mozdirent->d_name, "..") != 0))
227 { 228 {
228 snprintf(path, LINEBUFLEN, "%s/%s/%s/%s", 229 snprintf(path, LINEBUFLEN, "%s/%s/%s/%s",
229 confbase, 230 confbase,
230 mozdirname, 231 mozdirname,
231 mozdirent->d_name, 232 mozdirent->d_name,

http://wald.intevation.org/projects/trustbridge/