Skip to content

Commit d297021

Browse files
committed
Spelling fixes from a Fossies run done by Jens.
1 parent 1c82a1e commit d297021

23 files changed

+39
-39
lines changed

OLDNEWS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ Changes since 2.6.9:
12651265

12661266
- Ensure that a temporary file always has owner-write permission while we
12671267
are writing to it. This avoids problems with some network filesystems
1268-
when transfering read-only files.
1268+
when transferring read-only files.
12691269

12701270
- Any errors output about password-file reading no longer cause an error at
12711271
the end of the run about a partial transfer.

TODO

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Handling IPv6 on old machines
9494
platforms that have a half-working implementation, so redefining
9595
these functions clashes with system headers, and leaving them out
9696
breaks. This affects at least OSF/1, RedHat 5, and Cobalt, which
97-
are moderately improtant.
97+
are moderately important.
9898

9999
Perhaps the simplest solution would be to have two different files
100100
implementing the same interface, and choose either the new or the
@@ -236,7 +236,7 @@ Memory accounting
236236

237237
At exit, show how much memory was used for the file list, etc.
238238

239-
Also we do a wierd exponential-growth allocation in flist.c. I'm
239+
We also do a weird exponential-growth allocation in flist.c. I'm
240240
not sure this makes sense with modern mallocs. At any rate it will
241241
make us allocate a huge amount of memory for large file lists.
242242

acls.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ extern int preserve_specials;
4848
/* When we send the access bits over the wire, we shift them 2 bits to the
4949
* left and use the lower 2 bits as flags (relevant only to a name entry).
5050
* This makes the protocol more efficient than sending a value that would
51-
* be likely to have its hightest bits set. */
51+
* be likely to have its highest bits set. */
5252
#define XFLAG_NAME_FOLLOWS 0x0001u
5353
#define XFLAG_NAME_IS_USER 0x0002u
5454

case_N.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* with this program; if not, visit the http://fsf.org website.
1818
*/
1919

20-
/* This is included multiple times, once for every segement in a switch statement.
20+
/* This is included multiple times, once for every segment in a switch statement.
2121
* This produces the next "case N:" statement in sequence. */
2222

2323
#if !defined CASE_N_STATE_0

checksum.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ int canonical_checksum(int csum_type)
100100
}
101101

102102
/*
103-
a simple 32 bit checksum that can be upadted from either end
103+
a simple 32 bit checksum that can be updated from either end
104104
(inspired by Mark Adler's Adler-32 checksum)
105105
*/
106106
uint32 get_checksum1(char *buf1, int32 len)

chmod.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct chmod_mode_struct {
4444
#define STATE_OCTAL_NUM 3
4545

4646
/* Parse a chmod-style argument, and break it down into one or more AND/OR
47-
* pairs in a linked list. We return a pointer to new items on succcess
47+
* pairs in a linked list. We return a pointer to new items on success
4848
* (appending the items to the specified list), or NULL on error. */
4949
struct chmod_mode_struct *parse_chmod(const char *modestr,
5050
struct chmod_mode_struct **root_mode_ptr)

doc/rsync.sgml

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126

127127
<para><option>-P</option>
128128
Display a progress indicator while files are transferred. This should
129-
normally be ommitted if rsync is not run on a terminal.
129+
normally be omitted if rsync is not run on a terminal.
130130
</para>
131131
</section>
132132

@@ -348,4 +348,4 @@ running rsync giving the network directory.
348348

349349
<para><ulink url="http://www.ccp14.ac.uk/ccp14admin/rsync/"></ulink></para>
350350
</appendix>
351-
</book>
351+
</book>

fileio.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
#define ENODATA EAGAIN
2727
#endif
2828

29-
/* We want all reads to be aligned on 1K boundries. */
30-
#define ALIGN_BOUNDRY 1024
29+
/* We want all reads to be aligned on 1K boundaries. */
30+
#define ALIGN_BOUNDARY 1024
3131
/* How far past the boundary is an offset? */
32-
#define ALIGNED_OVERSHOOT(oft) ((oft) & (ALIGN_BOUNDRY-1))
32+
#define ALIGNED_OVERSHOOT(oft) ((oft) & (ALIGN_BOUNDARY-1))
3333
/* Round up a length to the next boundary */
34-
#define ALIGNED_LENGTH(len) ((((len) - 1) | (ALIGN_BOUNDRY-1)) + 1)
34+
#define ALIGNED_LENGTH(len) ((((len) - 1) | (ALIGN_BOUNDARY-1)) + 1)
3535

3636
extern int sparse_files;
3737

lib/compat.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static char number_separator;
7979

8080
#ifndef HAVE_STRPBRK
8181
/**
82-
* Find the first ocurrence in @p s of any character in @p accept.
82+
* Find the first occurrence in @p s of any character in @p accept.
8383
*
8484
* Derived from glibc
8585
**/

lib/snprintf.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* probably requires libm on most operating systems. Don't yet
3535
* support the exponent (e,E) and sigfig (g,G). Also, fmtint()
3636
* was pretty badly broken, it just wasn't being exercised in ways
37-
* which showed it, so that's been fixed. Also, formated the code
37+
* which showed it, so that's been fixed. Also, formatted the code
3838
* to mutt conventions, and removed dead code left over from the
3939
* original. Also, there is now a builtin-test, just compile with:
4040
* gcc -I.. -DTEST_SNPRINTF -o snprintf snprintf.c -lm
@@ -77,7 +77,7 @@
7777
* Fix incorrect zpadlen handling in fmtfp.
7878
* Thanks to Ollie Oldham <ollie.oldham@metro-optix.com> for spotting it.
7979
* few mods to make it easier to compile the tests.
80-
* addedd the "Ollie" test to the floating point ones.
80+
* added the "Ollie" test to the floating point ones.
8181
*
8282
* Martin Pool (mbp@samba.org) April 2003
8383
* Remove NO_CONFIG_H so that the test case can be built within a source

lib/sysacls.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ SMB_ACL_T sys_acl_get_file(const char *path_p, SMB_ACL_TYPE_T type)
450450
*
451451
* Note: we assume that the acl() system call returned a
452452
* well formed ACL which is sorted so that all of the
453-
* access ACL entries preceed any default ACL entries
453+
* access ACL entries precede any default ACL entries
454454
*/
455455
for (naccess = 0; naccess < count; naccess++) {
456456
if (acl_d->acl[naccess].a_type & ACL_DEFAULT)
@@ -932,7 +932,7 @@ SMB_ACL_T sys_acl_get_file(const char *path_p, SMB_ACL_TYPE_T type)
932932
*
933933
* Note: we assume that the acl() system call returned a
934934
* well formed ACL which is sorted so that all of the
935-
* access ACL entries preceed any default ACL entries
935+
* access ACL entries precede any default ACL entries
936936
*/
937937
for (naccess = 0; naccess < count; naccess++) {
938938
if (acl_d->acl[naccess].a_type & ACL_DEFAULT)
@@ -1095,7 +1095,7 @@ struct hpux_acl_types {
10951095
* structures.
10961096
* Inputs:
10971097
*
1098-
* acl_count - Count of ACLs in the array of ACL strucutres.
1098+
* acl_count - Count of ACLs in the array of ACL structures.
10991099
* aclp - Array of ACL structures.
11001100
* acl_type_count - Pointer to acl_types structure. Should already be
11011101
* allocated.
@@ -1256,7 +1256,7 @@ static int hpux_acl_sort(int acl_count, int calclass, struct acl *aclp)
12561256
{
12571257
#if !defined(HAVE_HPUX_ACLSORT)
12581258
/*
1259-
* The aclsort() system call is availabe on the latest HPUX General
1259+
* The aclsort() system call is available on the latest HPUX General
12601260
* Patch Bundles. So for HPUX, we developed our version of acl_sort
12611261
* function. Because, we don't want to update to a new
12621262
* HPUX GR bundle just for aclsort() call.
@@ -1311,7 +1311,7 @@ or DEF_USER_OBJ or DEF_GROUP_OBJ or DEF_OTHER_OBJ\n"));
13111311
* Sorting crieteria - First sort by ACL type. If there are multiple entries of
13121312
* same ACL type, sort by ACL id.
13131313
*
1314-
* I am using the trival kind of sorting method here because, performance isn't
1314+
* I am using the trivial kind of sorting method here because, performance isn't
13151315
* really effected by the ACLs feature. More over there aren't going to be more
13161316
* than 17 entries on HPUX.
13171317
*/

loadparm.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* 1) add it to the global_vars or local_vars structure definition
3131
* 2) add it to the parm_table
3232
* 3) add it to the list of available functions (eg: using FN_GLOBAL_STRING())
33-
* 4) initialise it in the Defaults static stucture
33+
* 4) initialise it in the Defaults static structure
3434
*
3535
* Notes:
3636
* The configuration file is processed sequentially for speed. For this
@@ -115,7 +115,7 @@ typedef struct {
115115
/* This structure describes a single section. Their order must match the
116116
* initializers below, which you can accomplish by keeping each sub-section
117117
* sorted. (e.g. in vim, just visually select each subsection and use !sort.)
118-
* NOTE: the char* variables MUST all remain at the start of the stuct! */
118+
* NOTE: the char* variables MUST all remain at the start of the struct! */
119119
typedef struct {
120120
char *auth_users;
121121
char *charset;

options.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2912,7 +2912,7 @@ static char *parse_hostspec(char *str, char **path_start_ptr, int *port_ptr)
29122912
return ret;
29132913
}
29142914

2915-
/* Look for a HOST specfication of the form "HOST:PATH", "HOST::PATH", or
2915+
/* Look for a HOST specification of the form "HOST:PATH", "HOST::PATH", or
29162916
* "rsync://HOST:PORT/PATH". If found, *host_ptr will be set to some allocated
29172917
* memory with the HOST. If a daemon-accessing spec was specified, the value
29182918
* of *port_ptr will contain a non-0 port number, otherwise it will be set to

params.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This modules is based on the params.c module from Samba, written by Karl Auer
2-
and much modifed by Christopher Hertel. */
2+
and much modified by Christopher Hertel. */
33

44
/*
55
* This program is free software; you can redistribute it and/or modify
@@ -59,7 +59,7 @@
5959
* beginning with either a semicolon (';') or a pound sign ('#').
6060
*
6161
* All whitespace in section names and parameter names is compressed
62-
* to single spaces. Leading and trailing whitespace is stipped from
62+
* to single spaces. Leading and trailing whitespace is stripped from
6363
* both names and values.
6464
*
6565
* Only the first equals sign in a parameter line is significant.
@@ -153,7 +153,7 @@ static int EatComment( FILE *InFile )
153153

154154
static int Continuation( char *line, int pos )
155155
/* ------------------------------------------------------------------------ **
156-
* Scan backards within a string to discover if the last non-whitespace
156+
* Scan backwards within a string to discover if the last non-whitespace
157157
* character is a line-continuation character ('\\').
158158
*
159159
* Input: line - A pointer to a buffer containing the string to be

rsync.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ void sig_int(int sig_num)
650650
* attributes (e.g. permissions, ownership, etc.). If the robust_rename()
651651
* call is forced to copy the temp file and partialptr is both non-NULL and
652652
* not an absolute path, we stage the file into the partial-dir and then
653-
* rename it into place. This returns 1 on succcess or 0 on failure. */
653+
* rename it into place. This returns 1 on success or 0 on failure. */
654654
int finish_transfer(const char *fname, const char *fnametmp,
655655
const char *fnamecmp, const char *partialptr,
656656
struct file_struct *file, int ok_to_set_time,

rsync.yo

+3-3
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ The command specified above uses ssh to run nc (netcat) on a proxyhost,
238238
which forwards all data to port 873 (the rsync daemon) on the targethost
239239
(%H).
240240

241-
Note also that if the RSYNC_SHELL environment varibable is set, that
241+
Note also that if the RSYNC_SHELL environment variable is set, that
242242
program will be used to run the RSYNC_CONNECT_PROG command instead of
243243
using the default shell of the code(system()) call.
244244

@@ -1348,7 +1348,7 @@ destination machines is higher than the bandwidth to disk (especially when the
13481348
the source and destination are specified as local paths, but only if no
13491349
batch-writing option is in effect.
13501350

1351-
dit(bf(--checksum-choice=STR)) This option overrides the checksum algoriths.
1351+
dit(bf(--checksum-choice=STR)) This option overrides the checksum algorithms.
13521352
If one algorithm name is specified, it is used for both the transfer checksums
13531353
and (assuming bf(--checksum) is specified) the pre-transfer checksumming. If two
13541354
comma-separated names are supplied, the first name affects the transfer
@@ -1654,7 +1654,7 @@ rsync to have a different idea about what data to expect next over the socket,
16541654
and that will make it fail in a cryptic fashion.
16551655

16561656
Note that it is best to use a separate bf(--remote-option) for each option you
1657-
want to pass. This makes your useage compatible with the bf(--protect-args)
1657+
want to pass. This makes your usage compatible with the bf(--protect-args)
16581658
option. If that option is off, any spaces in your remote options will be split
16591659
by the remote shell unless you take steps to protect them.
16601660

testsuite/rsync.fns

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ makepath() {
183183
for p in "${@}"; do
184184
(echo " makepath $p"
185185

186-
# Absolut Unix.
186+
# Absolute Unix path.
187187
if echo $p | grep '^/' >/dev/null
188188
then
189189
cd /

testsuite/ssh-basic.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if test x"$rsync_enable_ssh_tests" = xyes; then
1919
fi
2020

2121
if [ "`$SSH -o'BatchMode yes' localhost echo yes`" != "yes" ]; then
22-
test_skipped "Skipping SSH tests because ssh conection to localhost not authorised"
22+
test_skipped "Skipping SSH tests because ssh connection to localhost not authorised"
2323
fi
2424

2525
echo "Using remote shell: $SSH"

testsuite/trimslash.test

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111

1212
"$TOOLDIR/trimslash" "/usr/local/bin" "/usr/local/bin/" "/usr/local/bin///" \
1313
"//a//" "////" \
14-
"/Users/Wierd Macintosh Name/// Ooh, translucent plastic/" \
14+
"/Users/Weird Macintosh Name/// Ooh, translucent plastic/" \
1515
> "$scratchdir/slash.out"
1616
diff $diffopt "$scratchdir/slash.out" - <<EOF
1717
/usr/local/bin
1818
/usr/local/bin
1919
/usr/local/bin
2020
//a
2121
/
22-
/Users/Wierd Macintosh Name/// Ooh, translucent plastic
22+
/Users/Weird Macintosh Name/// Ooh, translucent plastic
2323
EOF
2424

2525
# The script would have aborted on error, so getting here means we've won.

token.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ void send_token(int f, int32 token, struct map_struct *buf, OFF_T offset,
639639
}
640640

641641
/*
642-
* receive a token or buffer from the other end. If the reurn value is >0 then
642+
* receive a token or buffer from the other end. If the return value is >0 then
643643
* it is a data buffer of that length, and *data will point at the data.
644644
* if the return value is -i then it represents token i-1
645645
* if the return value is 0 then the end has been reached

uidlist.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static struct idlist *recv_add_id(struct idlist **idlist_ptr, struct idlist *idm
252252
return node;
253253
}
254254

255-
/* this function is a definate candidate for a faster algorithm */
255+
/* this function is a definite candidate for a faster algorithm */
256256
uid_t match_uid(uid_t uid)
257257
{
258258
static struct idlist *last = NULL;

util.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ const char *find_filename_suffix(const char *fn, int fn_len, int *len_ptr)
14591459
if (!isDigit(s))
14601460
return suf;
14611461
}
1462-
/* An all-digit suffix may not be that signficant. */
1462+
/* An all-digit suffix may not be that significant. */
14631463
s = suf;
14641464
}
14651465

xattrs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ int recv_xattr_request(struct file_struct *file, int f_in)
719719
num += rel_pos;
720720
if (am_sender) {
721721
/* The sender-related num values are only in order on the sender.
722-
* We use that order here to scan foward or backward as needed. */
722+
* We use that order here to scan forward or backward as needed. */
723723
if (rel_pos < 0) {
724724
while (cnt < (int)lst->count && rxa->num > num) {
725725
rxa--;

0 commit comments

Comments
 (0)