]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:script: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Mon, 17 Jul 2023 13:03:58 +0000 (15:03 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 19 Jul 2023 09:58:37 +0000 (09:58 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
13 files changed:
source3/script/format_indent.sh
source3/script/tests/smbspool_argv_wrapper.c
source3/script/tests/test_net_misc.sh
source3/script/tests/test_net_registry.sh
source3/script/tests/test_sacl_set_get.sh
source3/script/tests/test_smb1_system_security.sh
source3/script/tests/test_smbclient_s3.sh
source3/script/tests/test_smbclient_tarmode.pl
source3/script/tests/test_smbclient_tarmode.sh
source3/script/tests/test_smbcquota.py
source3/script/tests/test_smbd_no_krb5.sh
source3/script/tests/test_smbspool.sh
source3/script/tests/vfstest-catia/run.sh

index 2af1ab41fae0397fa06b47cbaa6b37c834f5a437..11ef28590e2e6a266c5d8af27b4ea8313263d29f 100755 (executable)
@@ -6,7 +6,7 @@
 # -ts8 Set tab size to 8 spaces
 # -sob Swallow optional blank lines.
 # -l80 Set the maximum line length at 80 characters.
-# -ss  On one-line for and while statments, force a blank before the semicolon
+# -ss  On one-line for and while statements, force a blank before the semicolon
 # -ncs Do not put a space after cast operators.
 
 indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs "$@"
index 7db788109d9a224708033d6dff82a95a8f0838f5..f3024d9490d798872e4f6d28133878227b1e5aaa 100644 (file)
@@ -24,7 +24,7 @@
 /*
  * Before calling a backend like smbspool, CUPS will set argv[0] to
  * the Device URI.  This program wraps a program like smbspool and
- * sets argv[0] to the device URI before exec()ing the acutal backend
+ * sets argv[0] to the device URI before exec()ing the actual backend
  * program.
  */
 
index 94842182f664a73b340a1f6c9614b7018f1c7425..3c2c01f1c40484aaab33f5420973f8d55fe99bb6 100755 (executable)
@@ -14,7 +14,7 @@ SERVERCONFFILE="$2"
 NET="$3"
 CONFIGURATION="$4"
 
-# optional protocl, default to NT1
+# optional protocol, default to NT1
 if [ $# -gt 4 ]; then
        PROTOCOL="$5"
 else
index 4de0211e65bae95ac622a40541731f4748f11518..155533eedb78ace587758bdab1d4160d18b4c77b 100755 (executable)
@@ -64,7 +64,7 @@ test_enumerate_no_key()
 {
        ${NETREG} enumerate
        if test "x$?" = "x0"; then
-               echo "ERROR: enumerate succeeded without any key spcified"
+               echo "ERROR: enumerate succeeded without any key specified"
                false
        else
                true
@@ -118,7 +118,7 @@ test_createkey()
        EXPECTED="Keyname = ${SUBKEY}"
        printf "%s\n" "$OUTPUT" | grep '^Keyname' | grep ${SUBKEY}
        if test "x$?" != "x0"; then
-               echo "ERROR: did not find expexted '$EXPECTED' in output"
+               echo "ERROR: did not find expected '$EXPECTED' in output"
                echo "output:"
                printf "%s\n" "$OUTPUT"
                false
index 3d36f57d2e288b24b2bfa0c328ac8cfa2d234f40..1c78ab2034d759f08dc4739b6ec8db11875d12f9 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 #
 # Runs the smbtorture3 SMB2-SACL test
-# that requres SeSecurityPrivilege
+# that requires SeSecurityPrivilege
 # against Samba.
 #
 
index 656ae6765ea9ceb06782bec347ec18730a7e6ab9..dac889756fd3b54bf1741b7e347f1e4a0898ffbf 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 #
 # Runs the smbtorture3 SMB1-SYSTEM-SECURITY test
-# that requres SeSecurityPrivilege against Samba.
+# that requires SeSecurityPrivilege against Samba.
 #
 
 if [ $# -lt 7 ]; then
index fed1723a5318e9dbc9b8728d51a244cac0ee5ac7..cbff5026ee7b6df4376c3091b9ffd42ba724e0e9 100755 (executable)
@@ -551,7 +551,7 @@ EOF
 
     if [ $ret != 0 ] ; then
        echo "$out"
-       echo "failed deleteing $filename_src with error $ret"
+       echo "failed deleting $filename_src with error $ret"
        return 1
     fi
 
@@ -1142,7 +1142,7 @@ EOF
        fi
 }
 
-# Test creating a stream on the root of the share directory filname - :foobar
+# Test creating a stream on the root of the share directory filename - :foobar
 test_toplevel_stream()
 {
        tmpfile=$PREFIX/smbclient_interactive_prompt_commands
index bdbbd1a44a806f57ee33e8dae3ff789db0873852..fa69d28d4beda7777b95813b7c32093f61f454cf 100755 (executable)
@@ -1146,7 +1146,7 @@ Run smbclient with C<@args> passed as argument and return output.
 
 Each element of C<@args> becomes one escaped argument of smbclient.
 
-Host, share, user, password and the additionnal arguments provided on
+Host, share, user, password and the additional arguments provided on
 the command-line are already inserted.
 
 The output contains both the C<STDOUT> and C<STDERR>.
@@ -1204,7 +1204,7 @@ Run smbclient with C<@args> passed as argument and return output.
 
 Each element of C<@args> becomes one escaped argument of smbclient.
 
-Host, share, user, password and the additionnal arguments provided on
+Host, share, user, password and the additional arguments provided on
 the command-line are already inserted.
 
 The output contains both the C<STDOUT> and C<STDERR>.
@@ -1498,7 +1498,7 @@ sub attr {
 
 Return DOS attributes as a compact string.
 
-  Read-only, hiden, system, archive => "rhsa"
+  Read-only, hidden, system, archive => "rhsa"
 
 =cut
 sub attr_str {
index 7149df797f411d01ab36a9c61b9e8de2294a1bc9..d48e4120f7d49e57695f619c2c7155bf9df969f8 100755 (executable)
@@ -165,7 +165,7 @@ test_tarmode_extraction()
        # Extract tarfile with smbclient
        if ! $SMBCLIENT //$SERVER/tarmode $CONFIGURATION -U$USERNAME%$PASSWORD -I $SERVER_IP -p 139 \
                $ADDARGS -c "tarmode full" -Tx "$PREFIX/tarmode.tar"; then
-               echo "Couldn't extact tar file with tarmode -Tx"
+               echo "Couldn't extract tar file with tarmode -Tx"
                false
                return
        fi
index 0136cc97ce63a57e8a2a4c109fc19e964e66bd8a..3f67bd3c96099d22ecc13abb8bf5a0aded3ec1a6 100755 (executable)
@@ -223,7 +223,7 @@ def main():
     env.smbcquotas = sys.argv[6]
     quota_script = os.path.join(os.path.dirname(sys.argv[0]),
                                 "getset_quota.py")
-    #copy the quota script to the evironment
+    #copy the quota script to the environment
     shutil.copy2(quota_script, env.envdir)
 
     env.quota_db = os.path.join(env.envdir, "quotas.db")
index 1715e652a4e74d6bbd75cce68916568e2371ea8b..faa46c9083301df52fb7f3634b03820159efc425 100755 (executable)
@@ -31,7 +31,7 @@ opt="--option=gensec:gse_krb5=yes -U${USERNAME}%${PASSWORD}"
 # check kerberos access
 test_smbclient "test_krb5" "ls" "//$SERVER/tmp" $opt --use-kerberos=required || failed=$(expr $failed + 1)
 
-# disbale krb5 globally so smbd won't accept it
+# disable krb5 globally so smbd won't accept it
 global_inject_conf=$(dirname $SMB_CONF_PATH)/global_inject.conf
 echo 'gensec:gse_krb5=no' >$global_inject_conf
 
index 1fcc9a8cc0130e04e58ab8da486b1879d6380fde..0fb2d0341e2b1b47f45ad9a545e2fc958ff369fd 100755 (executable)
@@ -92,13 +92,13 @@ test_smbspool_authinforequired_unknown()
 }
 
 #
-# The test enviornment uses 'vlp' (virtual lp) as the printing backend.
+# The test environment uses 'vlp' (virtual lp) as the printing backend.
 #
 # When using the vlp backend the print job is only written to the database.
 # The job needs to removed manually using 'vlp lprm' command!
 #
 # This calls the 'vlp' command to check if the print job has been successfully
-# added to the database and also makes sure the temorary print file has been
+# added to the database and also makes sure the temporary print file has been
 # created.
 #
 # The function removes the print job from the vlp database if successful.
index c015e26c72b7cfa903308afdc6991dadf1921648..aca2a601fe5892308f9b6332682404584f2e4993 100755 (executable)
@@ -16,7 +16,7 @@ VFSTEST_PREFIX=vfstest
 VFSTEST_TMPDIR=$(mktemp -d ${PREFIX}/${VFSTEST_PREFIX}_XXXXXX)
 
 # We could pass in the --option=... via tests.py as ADDARGS
-# Atm i've choosen to specify them here:
+# Atm i've chosen to specify them here:
 
 MYARGS1="--option=vfsobjects=catia"
 MYARGS2="--option=catia:mappings=0x22:0xa8,0x2a:0xa4,0x2f:0xf8,0x3a:0xf7,0x3c:0xab,0x3e:0xbb,0x3f:0xbf,0x5c:0xff,0x7c:0xa6,0x20:0xb1"