From 612fedb3f2208ad6fc0c0bf2ccd022e8619ed180 Mon Sep 17 00:00:00 2001 From: jay Date: Sat, 18 Jun 2005 10:37:24 +0000 Subject: [PATCH] Applied (trivial) Martin Buchholz patch for typos/spelling errors, mostly in code comments --- ChangeLog | 5 +++++ doc/find.texi | 2 +- find/defs.h | 2 +- find/find.c | 14 +++++++------- find/parser.c | 6 +++--- 5 files changed, 17 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index e47c44d..dd58c3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-06-18 Martin Buchholz (trivial patch applied by James Youngman) + + * find/defs.h, find/find.c, find/parser.c, doc/find.texi: Fix + typos/spelling errors (mostly in source code comments). + 2005-06-18 Dmitry V. Levin Additional documentation tweaks for -execdir/-okdir actions. diff --git a/doc/find.texi b/doc/find.texi index b23d4a5..281ee9e 100644 --- a/doc/find.texi +++ b/doc/find.texi @@ -3260,7 +3260,7 @@ that it has ended up in the subdirectory it expected. If not, an error message is issued and @code{find} exits immediately. This method prevents filesystem manipulation attacks from persuading @code{find} to search parts of the filesystem it did not intend. -However, we heve to take special steps in order not to unneccessarily +However, we heve to take special steps in order not to unnecessarily conclude that there is a problem with any ``automount'' mount points. @node Working with automounters diff --git a/find/defs.h b/find/defs.h index 7a355ad..eb58ad5 100644 --- a/find/defs.h +++ b/find/defs.h @@ -322,7 +322,7 @@ struct predicate } args; /* The next predicate in the user input sequence, - which repesents the order in which the user supplied the + which represents the order in which the user supplied the predicates on the command line. */ struct predicate *pred_next; diff --git a/find/find.c b/find/find.c index ec5c7d0..5c2c75c 100644 --- a/find/find.c +++ b/find/find.c @@ -210,7 +210,7 @@ optionh_stat(const char *name, struct stat *p) } else { - /* Not a file on the command line; do not derefernce the link. + /* Not a file on the command line; do not dereference the link. */ return lstat(name, p); } @@ -284,7 +284,7 @@ set_follow_state(enum SymlinkOption opt) options.symlink_handling = opt; - /* For DBEUG_STAT, the choice is made at runtime within debug_stat() + /* For DEBUG_STAT, the choice is made at runtime within debug_stat() * by checking the contents of the symlink_handling variable. */ #if defined(DEBUG_STAT) @@ -956,7 +956,7 @@ enum SafeChdirStatus }; /* Safely perform a change in directory. We do this by calling - * lstat() on the subdirectory, using chdir() tro move into it, and + * lstat() on the subdirectory, using chdir() to move into it, and * then lstat()ing ".". We compare the results of the two stat calls * to see if they are consistent. If not, we sound the alarm. * @@ -1153,7 +1153,7 @@ safely_chdir_lstat(const char *dest, */ saved_errno = 0; - /* We use the same exit path for successs or failure. + /* We use the same exit path for success or failure. * which has occurred is recorded in RV. */ fail: @@ -1420,7 +1420,7 @@ static void do_process_predicate(char *pathname, Actions like -execdir assume that we are in the parent directory of the file we're examining, and on entry to this function our working directory - is whetever it was when find was invoked. Therefore + is whatever it was when find was invoked. Therefore If PATHNAME is "." we just leave things as they are. Otherwise, we figure out what the parent directory is, and move to that. @@ -1688,7 +1688,7 @@ complete_pending_execdirs(struct predicate *p) struct exec_val *execp = &p->args.exec_vec; /* This one was terminated by '+' and so might have some - * left... Run it if neccessary. + * left... Run it if necessary. */ if (execp->state.todo) { @@ -1727,7 +1727,7 @@ complete_pending_execs(struct predicate *p) struct exec_val *execp = &p->args.exec_vec; /* This one was terminated by '+' and so might have some - * left... Run it if neccessary. Set state.exit_status if + * left... Run it if necessary. Set state.exit_status if * there are any problems. */ if (execp->state.todo) diff --git a/find/parser.c b/find/parser.c index 09020fc..1931c16 100644 --- a/find/parser.c +++ b/find/parser.c @@ -322,7 +322,7 @@ find_parser (char *search_name) if ((first_nonoption_arg != NULL) && options.warnings ) { - /* option which folows a non-option */ + /* option which follows a non-option */ error (0, 0, _("warning: you have specified the %s " "option after a non-option argument %s, " @@ -2349,8 +2349,8 @@ insert_time (char **argv, int *arg_ptr, PRED_FUNC pred) return (true); } -/* Get a number with comparision information. - The sense of the comparision information is 'normal'; that is, +/* Get a number with comparison information. + The sense of the comparison information is 'normal'; that is, '+' looks for a count > than the number and '-' less than. STR is the ASCII representation of the number. -- 2.11.4.GIT