# -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 "$@"
/*
* 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.
*/
NET="$3"
CONFIGURATION="$4"
-# optional protocl, default to NT1
+# optional protocol, default to NT1
if [ $# -gt 4 ]; then
PROTOCOL="$5"
else
{
${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
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
#!/bin/sh
#
# Runs the smbtorture3 SMB2-SACL test
-# that requres SeSecurityPrivilege
+# that requires SeSecurityPrivilege
# against Samba.
#
#!/bin/sh
#
# Runs the smbtorture3 SMB1-SYSTEM-SECURITY test
-# that requres SeSecurityPrivilege against Samba.
+# that requires SeSecurityPrivilege against Samba.
#
if [ $# -lt 7 ]; then
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
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
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>.
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>.
Return DOS attributes as a compact string.
- Read-only, hiden, system, archive => "rhsa"
+ Read-only, hidden, system, archive => "rhsa"
=cut
sub attr_str {
# 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
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")
# 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
}
#
-# 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.
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"