summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamanta Navarro <ferivoz@riseup.net>2021-06-01 11:32:02 +0000
committerSergey Poznyakoff <gray@gnu.org>2021-06-01 18:54:07 +0300
commit3730dddb3f81e314c23c4ce90fc0de16fb5ea9e5 (patch)
tree97d13e4986f552398d29d7d764bcd8afa95abedf
parent8e82f367d4875484fb3dec865367ca947b5b8c81 (diff)
downloadtar-3730dddb3f81e314c23c4ce90fc0de16fb5ea9e5.tar.gz
Fix typos
Typos found with codespell
-rw-r--r--lib/wordsplit.h2
-rw-r--r--lib/xattr-at.h2
-rw-r--r--scripts/backup-specs4
-rw-r--r--scripts/restore.in2
-rw-r--r--src/extract.c2
-rw-r--r--src/names.c2
-rw-r--r--src/sparse.c2
-rw-r--r--src/system.c2
-rw-r--r--src/tar.c4
-rw-r--r--tests/capabs_raw01.at2
-rw-r--r--tests/exclude16.at2
-rw-r--r--tests/extrac23.at2
-rw-r--r--tests/incr09.at2
-rw-r--r--tests/multiv09.at2
-rw-r--r--tests/recurs02.at2
-rw-r--r--tests/testsuite.at2
16 files changed, 18 insertions, 18 deletions
diff --git a/lib/wordsplit.h b/lib/wordsplit.h
index ac95c9b7..e0f7e6de 100644
--- a/lib/wordsplit.h
+++ b/lib/wordsplit.h
@@ -40,7 +40,7 @@ struct wordsplit
char **ws_wordv; /* [Output] Array of parsed out words. */
size_t ws_offs; /* [Input] (WRDSF_DOOFFS) Number of initial
elements in ws_wordv to fill with NULLs. */
- size_t ws_wordn; /* Number of elements ws_wordv can accomodate. */
+ size_t ws_wordn; /* Number of elements ws_wordv can accommodate. */
unsigned ws_flags; /* [Input] Flags passed to wordsplit. */
unsigned ws_options; /* [Input] (WRDSF_OPTIONS)
Additional options. */
diff --git a/lib/xattr-at.h b/lib/xattr-at.h
index 1b93244d..05f6b35c 100644
--- a/lib/xattr-at.h
+++ b/lib/xattr-at.h
@@ -63,7 +63,7 @@ ssize_t getxattrat (int dir_fd, const char *path, const char *name,
ssize_t lgetxattrat (int dir_fd, const char *path, const char *name,
void *value, size_t size);
-/* dir-fd-relative listxattr. Obtain the list of extended attrubtes names. For
+/* dir-fd-relative listxattr. Obtain the list of extended attributes names. For
more info see the listxattr(2) manpage. */
ssize_t listxattrat (int dir_fd, const char *path, char *list, size_t size);
diff --git a/scripts/backup-specs b/scripts/backup-specs
index 130ace56..54000a01 100644
--- a/scripts/backup-specs
+++ b/scripts/backup-specs
@@ -13,7 +13,7 @@ TAR=/bin/tar
# In this case you will have to use public key authentication.
RSH=/usr/local/bin/ssh
-# (Optional) Path to rsh binary on remote mashines. This will be
+# (Optional) Path to rsh binary on remote machines. This will be
# passed via --rsh-command option to the remote invocation of
# tar
RSH_COMMAND=/usr/local/bin/ssh
@@ -43,7 +43,7 @@ BACKUP_DIRS='remote1:/etc remote1:/var/spool/crontab'
# DIRLIST=/etc/my-backup/dirlist
# List of individual files to be dumped.
-# These should be accesible from the machine on which the dump is run.
+# These should be accessible from the machine on which the dump is run.
BACKUP_FILES=''
# This list may also be kept in file $SYSCONFDIR/backup/files, the
# format of which is the same as described above. The location of
diff --git a/scripts/restore.in b/scripts/restore.in
index b7c8e7dd..203138b0 100644
--- a/scripts/restore.in
+++ b/scripts/restore.in
@@ -183,7 +183,7 @@ restore_files()
done
}
-# Operation Overwiew:
+# Operation Overview:
#
# 1. Determine the time of the last backup
# 2. Create list of incremental listings to process
diff --git a/src/extract.c b/src/extract.c
index 060692b3..7a95892e 100644
--- a/src/extract.c
+++ b/src/extract.c
@@ -456,7 +456,7 @@ mark_after_links (struct delayed_set_stat *head)
members. To help cope with this case the variable
delay_directory_restore_option is set by prepare_to_extract.
- If an archive was explicitely created so that its member order is
+ If an archive was explicitly created so that its member order is
reversed, some directory timestamps can be restored incorrectly,
e.g.:
tar --no-recursion -cf archive dir dir/file1 foo dir/file2
diff --git a/src/names.c b/src/names.c
index 272653da..503facb4 100644
--- a/src/names.c
+++ b/src/names.c
@@ -395,7 +395,7 @@ handle_file_selection_option (int key, const char *arg)
break;
case NO_ANCHORED_OPTION:
- include_anchored = 0; /* Clear the default for comman line args */
+ include_anchored = 0; /* Clear the default for command line args */
matching_flags &= ~ EXCLUDE_ANCHORED;
break;
diff --git a/src/sparse.c b/src/sparse.c
index 22ba32fa..2ebc6212 100644
--- a/src/sparse.c
+++ b/src/sparse.c
@@ -1019,7 +1019,7 @@ static struct tar_sparse_optab const star_optab = {
* 1.0
Starting from this version, the exact sparse format version is specified
- explicitely in the header using the following variables:
+ explicitly in the header using the following variables:
GNU.sparse.major Major version
GNU.sparse.minor Minor version
diff --git a/src/system.c b/src/system.c
index eb41c28d..d486cb73 100644
--- a/src/system.c
+++ b/src/system.c
@@ -538,7 +538,7 @@ sys_child_open_for_uncompress (void)
&& !_remdev (archive_name_array[0])
&& is_regular_file (archive_name_array[0]))
{
- /* We don't need a grandchild tar. Open the archive and lauch the
+ /* We don't need a grandchild tar. Open the archive and launch the
uncompressor. */
archive = open (archive_name_array[0], O_RDONLY | O_BINARY, MODE_RW);
diff --git a/src/tar.c b/src/tar.c
index 6629f190..fc3c470d 100644
--- a/src/tar.c
+++ b/src/tar.c
@@ -889,7 +889,7 @@ enum option_class
};
/* Table of locations of potentially conflicting options. Two options can
- conflict only if they procede from the command line. Otherwise, options
+ conflict only if they proceed from the command line. Otherwise, options
in command line silently override those defined in TAR_OPTIONS. */
static struct option_locus *option_class[OC_MAX];
@@ -2697,7 +2697,7 @@ decode_options (int argc, char **argv)
if (backup_option)
{
backup_type = xget_version ("--backup", args.version_control_string);
- /* No backup is needed either if explicitely disabled or if
+ /* No backup is needed either if explicitly disabled or if
the extracted files are not being written to disk. */
if (backup_type == no_backups || EXTRACT_OVER_PIPE)
backup_option = false;
diff --git a/tests/capabs_raw01.at b/tests/capabs_raw01.at
index a1d94116..38373f96 100644
--- a/tests/capabs_raw01.at
+++ b/tests/capabs_raw01.at
@@ -20,7 +20,7 @@
#
# Test description: Test if file capabilities are archived/restored correctly
# using just the default xattr support (capabilities are stored/restored in
-# binary format -> system dependant).
+# binary format -> system dependent).
AT_SETUP([capabilities: binary store/restore])
AT_KEYWORDS([xattrs capabilities capabs_raw01])
diff --git a/tests/exclude16.at b/tests/exclude16.at
index 13863ea2..689b3d38 100644
--- a/tests/exclude16.at
+++ b/tests/exclude16.at
@@ -24,7 +24,7 @@
# --listed-incremental option is given.
#
# This testcase verifies whether the --exclude-tag-all option works
-# as expected whe used together with --listed-incremental. If the
+# as expected when used together with --listed-incremental. If the
# exclusion tag is created after the level 0 dump, the level 1 dump
# must skip the entire affected subdirectory and any previously-included
# files within it.
diff --git a/tests/extrac23.at b/tests/extrac23.at
index 84f97446..b9c9d0e6 100644
--- a/tests/extrac23.at
+++ b/tests/extrac23.at
@@ -38,7 +38,7 @@ chmod 777 dir
tar -xf a.tar --no-overwrite-dir
genfile --stat=mode.777 dir
-# Test if temprorary permissions are set correctly to allow the owner
+# Test if temporary permissions are set correctly to allow the owner
# to write to the directory.
genfile --file dir/file
tar cf a.tar dir
diff --git a/tests/incr09.at b/tests/incr09.at
index 00091595..5eebcb52 100644
--- a/tests/incr09.at
+++ b/tests/incr09.at
@@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Description: For some intermediate versions of tar 1.26.90,
-# tar would fail to correctly cannonicalize archive member names
+# tar would fail to correctly canonicalize archive member names
# in incremental mode if there was a -C options with an absolute path
# on the command line without any archive members specified within that
# directory. (In that case, the canonical name generated for
diff --git a/tests/multiv09.at b/tests/multiv09.at
index 372d4720..de809cf4 100644
--- a/tests/multiv09.at
+++ b/tests/multiv09.at
@@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Description: Tar <=1.28 would segfault extracting from a multi-volume
-# archive containging filenames >= 100 characters if the subsequent volume
+# archive containing filenames >= 100 characters if the subsequent volume
# was not set properly.
# Reported by: Pavel Raiskup <praiskup@redhat.com>
# References: https://bugzilla.redhat.com/show_bug.cgi?id=866071,
diff --git a/tests/recurs02.at b/tests/recurs02.at
index 31cf7683..97fe7561 100644
--- a/tests/recurs02.at
+++ b/tests/recurs02.at
@@ -19,7 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Description: Test interaction of --recursion and --no-recursion options.
-# Each of them remains in effect until cancelled by the next ocurrence
+# Each of them remains in effect until cancelled by the next occurrence
# of its counterpart. This didn't work in v.1.27.1 and was fixed by
# commit 2bd9c153.
# Reported by: Kai <hellsy22@mail.ru>
diff --git a/tests/testsuite.at b/tests/testsuite.at
index d93f394c..2d3faece 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -131,7 +131,7 @@ m4_define([AT_TAR_MKHIER],[
install-sh -d $1 >/dev/null dnl
m4_if([$2],,,&& genfile --file [$1]/[$2]) || AT_SKIP_TEST])
-dnl Skip test when utlity does not return expected return value
+dnl Skip test when utility does not return expected return value
m4_define([AT_CHECK_UTIL],[
$1 &> /dev/null
if test "$?" != $2; then