Skip to content

Commit

Permalink
git-svn-id: svn://cherokee-project.com/cherokee/trunk@770 5dc97367-97…
Browse files Browse the repository at this point in the history
…f1-0310-9951-d761b3857238
  • Loading branch information
alobbs committed Jun 13, 2007
1 parent 605e713 commit 06858f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
@@ -1,3 +1,10 @@
2007-05-11 A.D.F <adefacc@tin.it>

* cherokee/handler_common.c:
- always test for ret == ret_ok before assigning
result to boolean variables;
- sparse space cleanups;

2007-06-01 A.D.F <adefacc@tin.it>

* cherokee/connection.c:
Expand Down
12 changes: 6 additions & 6 deletions cherokee/handler_common.c
Expand Up @@ -116,19 +116,19 @@ stat_file (cherokee_boolean_t useit, cherokee_iocache_t *iocache, struct stat *n
return ret_not_found;
case EACCES:
return ret_deny;
default:
default:
return ret_error;
}
}

*info = nocache_info;
*info = nocache_info;
return ret_ok;
}
}

/* I/O cache
*/
#ifndef CHEROKEE_EMBEDDED
ret = cherokee_iocache_stat_get (iocache, path, io_entry);
ret = cherokee_iocache_get_or_create_w_stat (iocache, path, io_entry);

TRACE (ENTRIES, "%s, use_iocache=%d re=%d\n", path, useit, re);

Expand Down Expand Up @@ -299,8 +299,8 @@ cherokee_handler_common_new (cherokee_handler_t **hdl, void *cnt, cherokee_modul
cherokee_buffer_add (&conn->local_directory, index, index_len);
ret = stat_file (use_iocache, iocache, &nocache_info, conn->local_directory.buf, &file, &info);

exists = (ret == ret_ok);
is_dir = S_ISDIR(info->st_mode);
exists = (ret == ret_ok);
is_dir = ((ret == ret_ok) && S_ISDIR(info->st_mode));

cherokee_iocache_mmap_release (iocache, file);
cherokee_buffer_drop_endding (&conn->local_directory, index_len);
Expand Down

0 comments on commit 06858f5

Please sign in to comment.