mirror of
https://git.zx2c4.com/cgit
synced 2024-11-23 08:58:41 +00:00
global: spelling fixes
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
This commit is contained in:
parent
98abe5bb9e
commit
67d0f87050
2
cache.c
2
cache.c
@ -318,7 +318,7 @@ static int process_slot(struct cache_slot *slot)
|
|||||||
/* If the cache slot does not exist (or its key doesn't match the
|
/* If the cache slot does not exist (or its key doesn't match the
|
||||||
* current key), lets try to create a new cache slot for this
|
* current key), lets try to create a new cache slot for this
|
||||||
* request. If this fails (for whatever reason), lets just generate
|
* request. If this fails (for whatever reason), lets just generate
|
||||||
* the content without caching it and fool the caller to belive
|
* the content without caching it and fool the caller to believe
|
||||||
* everything worked out (but print a warning on stdout).
|
* everything worked out (but print a warning on stdout).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
2
cache.h
2
cache.h
@ -19,7 +19,7 @@ typedef void (*cache_fill_fn)(void);
|
|||||||
* fn content generator function for this key
|
* fn content generator function for this key
|
||||||
*
|
*
|
||||||
* Return value
|
* Return value
|
||||||
* 0 indicates success, everyting else is an error
|
* 0 indicates success, everything else is an error
|
||||||
*/
|
*/
|
||||||
extern int cache_process(int size, const char *path, const char *key, int ttl,
|
extern int cache_process(int size, const char *path, const char *key, int ttl,
|
||||||
cache_fill_fn fn);
|
cache_fill_fn fn);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# This script can be used to implement syntax highlighting in the cgit
|
# This script can be used to implement syntax highlighting in the cgit
|
||||||
# tree-view by refering to this file with the source-filter or repo.source-
|
# tree-view by referring to this file with the source-filter or repo.source-
|
||||||
# filter options in cgitrc.
|
# filter options in cgitrc.
|
||||||
#
|
#
|
||||||
# This script requires a shell supporting the ${var##pattern} syntax.
|
# This script requires a shell supporting the ${var##pattern} syntax.
|
||||||
|
@ -10,16 +10,16 @@ test -n "$(which strace 2>/dev/null)" || {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test_no_home_access () {
|
test_no_home_access () {
|
||||||
non_existant_path="/path/to/some/place/that/does/not/possibly/exist"
|
non_existent_path="/path/to/some/place/that/does/not/possibly/exist"
|
||||||
while test -d "$non_existant_path"; do
|
while test -d "$non_existent_path"; do
|
||||||
non_existant_path="$non_existant_path/$(date +%N)"
|
non_existent_path="$non_existent_path/$(date +%N)"
|
||||||
done &&
|
done &&
|
||||||
strace \
|
strace \
|
||||||
-E HOME="$non_existant_path" \
|
-E HOME="$non_existent_path" \
|
||||||
-E CGIT_CONFIG="$PWD/cgitrc" \
|
-E CGIT_CONFIG="$PWD/cgitrc" \
|
||||||
-E QUERY_STRING="url=$1" \
|
-E QUERY_STRING="url=$1" \
|
||||||
-e access -f -o strace.out cgit &&
|
-e access -f -o strace.out cgit &&
|
||||||
test_must_fail grep "$non_existant_path" strace.out
|
test_must_fail grep "$non_existent_path" strace.out
|
||||||
}
|
}
|
||||||
|
|
||||||
test_no_home_access_success() {
|
test_no_home_access_success() {
|
||||||
|
Loading…
Reference in New Issue
Block a user