Skip to content

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed Sep 23, 2024
1 parent cf2eb17 commit e456c6e
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion bench/bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ bench-complete() {
fi
}

# Benchmark quiting as soon as a file is seen
# Benchmark quitting as soon as a file is seen
bench-early-quit-corpus() {
dir="$2"
max_depth=$(./bin/bfs "$dir" -printf '%d\n' | sort -rn | head -n1)
Expand Down
2 changes: 1 addition & 1 deletion build/prelude.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RM ?= rm -f
# VAR=1 ${TRUTHY,${VAR}} => ${TRUTHY,1} => y
# VAR=n ${TRUTHY,${VAR}} => ${TRUTHY,n} => [empty]
# VAR=other ${TRUTHY,${VAR}} => ${TRUTHY,other} => [empty]
# VAR= ${TRUTHY,${VAR}} => ${TRUTHY,} => [emtpy]
# VAR= ${TRUTHY,${VAR}} => ${TRUTHY,} => [empty]
#
# Inspired by https://github.com/wahern/autoguess
TRUTHY,y := y
Expand Down
6 changes: 3 additions & 3 deletions completions/bfs.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ args=(
'*-user[find files owned by user NAME]:user:_users'
'*-hidden[find hidden files (those beginning with .)]'

'*-ilname[find symbolic links whose target matches GLOB (case insensitve)]:link pattern to search (case insensitive):'
'*-ilname[find symbolic links whose target matches GLOB (case insensitive)]:link pattern to search (case insensitive):'
'*-iname[find files whose name matches GLOB (case insensitive)]:name pattern to match (case insensitive):'
'*-inum[find files with inode number N]:inode number:'
'*-ipath[find files whose entire path matches GLOB (case insenstive)]:path pattern to search (case insensitive):'
'*-iregex[find files whose entire path matches REGEX (case insenstive)]:regular expression to search (case insensitive):'
'*-ipath[find files whose entire path matches GLOB (case insensitive)]:path pattern to search (case insensitive):'
'*-iregex[find files whose entire path matches REGEX (case insensitive)]:regular expression to search (case insensitive):'
'*-iwholename[find files whose entire path matches GLOB (case insensitive)]:full path pattern to search (case insensitive):'

'*-links[find files with N hard links]:number of links:'
Expand Down
2 changes: 1 addition & 1 deletion docs/BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ External dependencies are auto-detected by default, but you can build `--with` o
</pre>

[`pkg-config`] is used, if available, to detect these libraries and any additional build flags they may require.
If this is undesireable, disable it by setting `PKG_CONFIG` to the empty string (`./configure PKG_CONFIG=""`).
If this is undesirable, disable it by setting `PKG_CONFIG` to the empty string (`./configure PKG_CONFIG=""`).

[`pkg-config`]: https://www.freedesktop.org/wiki/Software/pkg-config/

Expand Down
2 changes: 1 addition & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@

- Breadth-first search could become highly unbalanced, negating many of the benefits of `bfs`

- On non-{Linux,FreeBSD} plaforms, directories could stay open longer than necessary, consuming extra memory
- On non-{Linux,FreeBSD} platforms, directories could stay open longer than necessary, consuming extra memory

[#107]: https://github.com/tavianator/bfs/pull/107

Expand Down
2 changes: 1 addition & 1 deletion docs/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Anyone with enough control over the command line of `bfs` or any `find`-compatib
> It is *always* unsafe to allow *any* other part of the command line to be affected by untrusted input.
> Use the `-f` flag, or `-files0-from`, to ensure that the input is interpreted as a path.
This still has security implications, incuding:
This still has security implications, including:

- **Information disclosure:** an attacker may learn whether particular files exist by observing `bfs`'s output, exit status, or even side channels like execution time.
- **Denial of service:** large directory trees or slow/network storage may cause `bfs` to consume excessive system resources.
Expand Down
2 changes: 1 addition & 1 deletion docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ For expressions like `-name`, that's all they do.
But some expressions, called *actions*, have other side effects.

If no actions are included in the expression, `bfs` adds the `-print` action automatically, which is why the above examples actually print any output.
The default `-print` is supressed if any actions are given explicitly.
The default `-print` is suppressed if any actions are given explicitly.
Available actions include printing with alternate formats (`-ls`, `-printf`, etc.), executing commands (`-exec`, `-execdir`, etc.), deleting files (`-delete`), and stopping the search (`-quit`, `-exit`).


Expand Down
2 changes: 1 addition & 1 deletion src/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void *reserve(void *ptr, size_t align, size_t size, size_t count) {
size_t old_size = size * count;

// Capacity is doubled every power of two, from 0→1, 1→2, 2→4, etc.
// If we stayed within the same size class, re-use ptr.
// If we stayed within the same size class, reuse ptr.
if (count & (count - 1)) {
// Tell sanitizers about the new array element
sanitize_alloc((char *)ptr + old_size, size);
Expand Down
2 changes: 1 addition & 1 deletion src/alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void *varena_alloc(struct varena *varena, size_t count);
* @param ptr
* The object to resize.
* @param old_count
* The old array lenth.
* The old array length.
* @param new_count
* The new array length.
* @return
Expand Down
2 changes: 1 addition & 1 deletion src/bftw.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ static void bftw_queue_rebalance(struct bftw_queue *queue, bool async) {
}
}

/** Detatch the next waiting file. */
/** Detach the next waiting file. */
static void bftw_queue_detach(struct bftw_queue *queue, struct bftw_file *file, bool async) {
bfs_assert(!file->ioqueued);

Expand Down
2 changes: 1 addition & 1 deletion src/color.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
struct esc_seq {
/** The length of the escape sequence. */
size_t len;
/** The escape sequence iteself, without a terminating NUL. */
/** The escape sequence itself, without a terminating NUL. */
char seq[];
};

Expand Down
2 changes: 1 addition & 1 deletion src/expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ struct bfs_expr {
/** Total time spent running this predicate. */
struct timespec elapsed;

/** Auxilliary data for the evaluation function. */
/** Auxiliary data for the evaluation function. */
union {
/** Child expressions. */
struct bfs_exprs children;
Expand Down
2 changes: 1 addition & 1 deletion src/opt.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static const char *const pred_names[] = {
};

/**
* A contrained integer range.
* A constrained integer range.
*/
struct df_range {
/** The (inclusive) minimum value. */
Expand Down
2 changes: 1 addition & 1 deletion tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ comake() {
exec {READY_PIPE}<&${COPROC[0]} {DONE_PIPE}>&${COPROC[1]}
}

# Print the current test progess
# Print the current test progress
progress() {
if [ "${BAR:-}" ]; then
print_bar "$(printf "$@")"
Expand Down
2 changes: 1 addition & 1 deletion tests/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ stdenv() {
fi
}

# Drop root priviliges or bail
# Drop root privileges or bail
drop_root() {
if command -v capsh &>/dev/null; then
if capsh --has-p=cap_dac_override &>/dev/null || capsh --has-p=cap_dac_read_search &>/dev/null; then
Expand Down

0 comments on commit e456c6e

Please sign in to comment.