+2006-11-10 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Fix bug which ommitted directory entries for symlinks with the
+ -ofollow_symlinks option. Bug reported by Mikael Ståldal
+
2006-09-29 Miklos Szeredi <miklos@szeredi.hu>
* Fix segfault if there are outstanding writes to the server after
- release on the file descriptor. The only happened on FreeBSD.
+ release on the file descriptor. This only happened on FreeBSD.
Reported by Andriy Gapon
2006-08-18 Miklos Szeredi <miklos@szeredi.hu>
const struct stat *stbuf)
{
int err = ch->filler(ch->h, name, 0, 0);
- if (!err && (stbuf->st_mode & S_IFMT)) {
- char *fullpath;
+ if (!err) {
g_ptr_array_add(ch->dir, g_strdup(name));
- fullpath = g_strdup_printf("%s/%s", !ch->path[1] ? "" : ch->path, name);
- cache_add_attr(fullpath, stbuf);
- g_free(fullpath);
+ if (stbuf->st_mode & S_IFMT) {
+ char *fullpath =
+ g_strdup_printf("%s/%s", !ch->path[1] ? "" : ch->path, name);
+ cache_add_attr(fullpath, stbuf);
+ g_free(fullpath);
+ }
}
return err;
}