Typos found by codespell

This commit is contained in:
Dimitri Papadopoulos
2021-11-02 08:13:48 +01:00
parent 2459b0a397
commit b2c22d58cb
7 changed files with 11 additions and 11 deletions

View File

@@ -156,7 +156,7 @@ with all the normal optimisations, using:
Here's a script that will do just that!. It will create a directory in your home folder called 'nwipe_master'. It installs all the libraries required to compile the software (build-essential) and all the libraries that nwipe requires (libparted etc). It downloads the latest master copy of nwipe from github. It then compiles the software and then runs the latest nwipe. It doesn't write over the version of nwipe that's installed in the repository (If you had nwipe already installed). To run the latest master version of nwipe manually you would run it like this `sudo ~/nwipe_master/nwipe/src/nwipe`
You can run the script multiple times, the first time it's run it will install all the libraries, subsequent times it will just say the the libraries are upto date. As it always downloads a fresh copy of the nwipe master from Github, you can always stay up to date. Just run it to get the latest version of nwipe. It takes all of 11 seconds on my I7.
You can run the script multiple times, the first time it's run it will install all the libraries, subsequent times it will just say the the libraries are up to date. As it always downloads a fresh copy of the nwipe master from Github, you can always stay up to date. Just run it to get the latest version of nwipe. It takes all of 11 seconds on my I7.
If you already have nwipe installed from the repository, you need to take care which version you are running. If you typed `nwipe` from any directory it will always run the original repository copy of nwipe. To run the latest nwipe you have to explicitly tell it where the new copy is, e.g in the directory `~/nwipe_master/nwipe/src` . That's why you would run it by typing `sudo ~/nwipe_master/nwipe/src/nwipe` alternatively you could cd to the directory and run it like this:

View File

@@ -468,7 +468,7 @@ int nwipe_get_device_bus_type_and_serialno( char* device, nwipe_device_t* bus, c
nwipe_log( NWIPE_LOG_WARNING, "Command not found. Install readlink !" );
set_return_value = 2;
/* Return immediatley if --nousb specified. Readlink is a requirment for this option. */
/* Return immediately if --nousb specified. Readlink is a requirement for this option. */
if( nwipe_options.nousb )
{
return set_return_value;

View File

@@ -2030,7 +2030,7 @@ void nwipe_gui_method( void )
mvwprintw( main_window, 5, tab2, "that the rounds option does not apply to this " );
mvwprintw( main_window, 6, tab2, "method. This method always runs one round. " );
mvwprintw( main_window, 7, tab2, " " );
mvwprintw( main_window, 8, tab2, "There is no publically available evidence that " );
mvwprintw( main_window, 8, tab2, "There is no publicly available evidence that " );
mvwprintw( main_window, 9, tab2, "data can be recovered from a modern traditional " );
mvwprintw( main_window, 10, tab2, "hard drive (HDD) that has been zero wiped, " );
mvwprintw( main_window, 11, tab2, "however a wipe that includes a prng may be " );
@@ -2943,7 +2943,7 @@ void nwipe_update_speedring( nwipe_speedring_t* speedring, u64 speedring_bytes,
speedring->bytestotal -= speedring->bytes[speedring->position];
speedring->timestotal -= speedring->times[speedring->position];
/* Put the lastest bytes-per-second sample into the ring buffer. */
/* Put the latest bytes-per-second sample into the ring buffer. */
speedring->bytes[speedring->position] = speedring_bytes - speedring->byteslast;
speedring->times[speedring->position] = speedring_now - speedring->timeslast;

View File

@@ -869,7 +869,7 @@ void nwipe_log_summary( nwipe_context_t** ptr, int nwipe_selected )
/* Determine the size of throughput so that the correct nomenclature can be used */
Determine_C_B_nomenclature( total_throughput, total_throughput_string, 13 );
/* Blank abreviations used in summary table B=blank, NB=no blank */
/* Blank abbreviations used in summary table B=blank, NB=no blank */
if( nwipe_options.noblank )
{
strcpy( blank, "NB" );
@@ -879,7 +879,7 @@ void nwipe_log_summary( nwipe_context_t** ptr, int nwipe_selected )
strcpy( blank, "B" );
}
/* Verify abreviations used in summary table */
/* Verify abbreviations used in summary table */
switch( nwipe_options.verify )
{
case NWIPE_VERIFY_NONE:

View File

@@ -806,7 +806,7 @@ int nwipe_runmethod( nwipe_context_t* c, nwipe_pattern_t* patterns )
c->result = c->round_size;
/* If only verifing then the round size is the device size */
/* If only verifying then the round size is the device size */
if( nwipe_options.method == &nwipe_verify_zero || nwipe_options.method == &nwipe_verify_one )
{
c->round_size = c->device_size;
@@ -1307,7 +1307,7 @@ void calculate_round_size( nwipe_context_t* c )
c->round_size += c->device_size;
}
/* As no final zero blanking pass is permitted by this standard reduce round size if it's seelected */
/* As no final zero blanking pass is permitted by this standard reduce round size if it's selected */
if( nwipe_options.noblank == 0 )
{
/* Reduce for blanking pass */

View File

@@ -91,7 +91,7 @@ int main( int argc, char** argv )
/* Initialise, flag indicating whether a wipe has actually started or not 0=no, 1=yes */
global_wipe_status = 0;
/* Initialise flags that indicates whether a fatal or non fatal error occured on ANY drive */
/* Initialise flags that indicate whether a fatal or non fatal error occurred on ANY drive */
int fatal_errors_flag = 0;
int non_fatal_errors_flag = 0;
@@ -228,7 +228,7 @@ int main( int argc, char** argv )
/* Check for initialization errors. */
if( nwipe_error )
{
nwipe_log( NWIPE_LOG_ERROR, "Initialization eror %i\n", nwipe_error );
nwipe_log( NWIPE_LOG_ERROR, "Initialization error %i\n", nwipe_error );
cleanup();
return -1;
}

View File

@@ -96,7 +96,7 @@ int nwipe_options_parse( int argc, char** argv )
/* Whether to exit after wiping or wait for a keypress. */
{ "nogui", no_argument, 0, 0 },
/* A flag to indicate whether the devices whould be opened in sync mode. */
/* A flag to indicate whether the devices would be opened in sync mode. */
{ "sync", required_argument, 0, 0 },
/* Verify that wipe patterns are being written to the device. */