From 1ba146dda309af3842d7a75bca2ac45e4363ac2c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 22 Mar 2023 10:05:24 +0100 Subject: examples: Fix code spelling Signed-off-by: Andreas Schneider Reviewed-by: Rowland Penny --- examples/LDAP/ol-schema-migrate.pl | 6 +++--- examples/dce-dfs/smb.conf | 6 +++--- examples/libsmbclient/testbrowse2.c | 2 +- examples/logon/mklogon/mklogon.conf | 2 +- examples/logon/ntlogon/README | 8 ++++---- examples/logon/ntlogon/ntlogon.py | 2 +- examples/pam_winbind/pam_winbind.conf | 2 +- examples/pcap2nbench/README | 2 +- examples/printer-accounting/hp5-redir | 2 +- examples/printer-accounting/lp-acct | 2 +- examples/scripts/idmap/README | 2 +- examples/scripts/nmb/findsmb | 2 +- examples/scripts/users_and_groups/adduserstogroups.pl | 2 +- examples/scripts/users_and_groups/createdomobj.pl | 2 +- examples/smb.conf.default | 6 +++--- examples/validchars/readme | 2 +- examples/winexe/winexesvc.c | 2 +- 17 files changed, 26 insertions(+), 26 deletions(-) diff --git a/examples/LDAP/ol-schema-migrate.pl b/examples/LDAP/ol-schema-migrate.pl index 2e8f929f96d..c0a6f016ffd 100755 --- a/examples/LDAP/ol-schema-migrate.pl +++ b/examples/LDAP/ol-schema-migrate.pl @@ -108,7 +108,7 @@ if($optionBadEntries) { do { $emptyOid ++; print "Warning : no OID for attributes element at line $attr->{LINENUMBER} \n"; } if( !defined($attr->{OID})); - print "### Unknow element embedded in ATTRIBUTE at line $attr->{LINENUMBER} :\n$attr->{DATA}\n" + print "### Unknown element embedded in ATTRIBUTE at line $attr->{LINENUMBER} :\n$attr->{DATA}\n" } if($attr->{DATA} =~ /\w/); } @@ -137,7 +137,7 @@ if($optionBadEntries) { do { $emptyOid++ ; print "Warning : no OID for object class element at line $objc->{LINENUMBER} \n"; } if( $objc->{OID} eq ""); - print "### Unknow element embedded in OBJECT CLASS at line $objc->{LINENUMBER} :\n$objc->{DATA}\n" + print "### Unknown element embedded in OBJECT CLASS at line $objc->{LINENUMBER} :\n$objc->{DATA}\n" } if($objc->{DATA} =~ /\w/); } @@ -288,7 +288,7 @@ sub getSourceFile { s/\t/ /; $oc_string .= $_; - $endParenthesis = 0; # best methode to accept an elements : + $endParenthesis = 0; # best method to accept an elements : $beginParenthesis = 0; # left parenthesis sum == right parenthesis sum, so we are sure to for(my $i=0;$ i < length($oc_string); $i++) { # have an element. $beginParenthesis++ if(substr ($oc_string, $i, 1) eq "("); diff --git a/examples/dce-dfs/smb.conf b/examples/dce-dfs/smb.conf index 1f060282c37..f0071637e28 100644 --- a/examples/dce-dfs/smb.conf +++ b/examples/dce-dfs/smb.conf @@ -8,7 +8,7 @@ [homes] comment = Home Directories - browseable = no + browsable = no read only = no create mode = 0750 @@ -28,14 +28,14 @@ [oecdfs] comment = Corporate Cell path = /.../corp.boston.oec.com/fs - browseable = no + browsable = no read only = no create mode = 0750 [develdfs] comment = Technology Development Cell path = /.../devel.boston.oec.com/fs - browseable = no + browsable = no read only = no create mode = 0750 diff --git a/examples/libsmbclient/testbrowse2.c b/examples/libsmbclient/testbrowse2.c index d858ba96312..c1d564464d2 100644 --- a/examples/libsmbclient/testbrowse2.c +++ b/examples/libsmbclient/testbrowse2.c @@ -153,7 +153,7 @@ int main(int argc, char *argv[]){ char smb_path[32768] = "smb://"; if ((ctx = create_smbctx()) == NULL){ - perror("Cant create samba context."); + perror("Can't create samba context."); return 1; } diff --git a/examples/logon/mklogon/mklogon.conf b/examples/logon/mklogon/mklogon.conf index da222eb3eac..9e585c57dc9 100644 --- a/examples/logon/mklogon/mklogon.conf +++ b/examples/logon/mklogon/mklogon.conf @@ -19,7 +19,7 @@ timesync = yes sambaconf = "/etc/samba/smb.conf" logtype = file -# Change and uncomment the below value to force the servername, some clients ocassionally +# Change and uncomment the below value to force the servername, some clients occasionally # have trouble picking up the right servername so it may need to be set. It CANNOT be left blank AND uncommented. servername = "TIGER" diff --git a/examples/logon/ntlogon/README b/examples/logon/ntlogon/README index e33c565d717..da5256240f9 100644 --- a/examples/logon/ntlogon/README +++ b/examples/logon/ntlogon/README @@ -14,10 +14,10 @@ CHANGES SINCE v0.6 PLEASE NOT THAT I AM CONSIDERING THIS A BETA UNTIL I GET SOME FEEDBACK FROM USERS ON WHETHER THE MACRO FEATURE WORKS FOR THEM. -added the ability to define substitution macros: see the useage section +added the ability to define substitution macros: see the usage section removed the large docstring from the file and moved the information to -the USEAGE section of this file +the USAGE section of this file cleaned up the code and made more flexible @@ -88,12 +88,12 @@ date now, but that's the history of the strange file locations): root postexec = rm /usr/local/samba/netlogon/%U.bat ====== -USEAGE +USAGE ====== PLEASE SEE NTLOGON.CONF FOR A DETAILED CONFIGURATION EXAMPLE This programme will build a Windows NT logon script for users connecting -to a Samba server. Samba macros that are curently understood: +to a Samba server. Samba macros that are currently understood: %U user name %G group name diff --git a/examples/logon/ntlogon/ntlogon.py b/examples/logon/ntlogon/ntlogon.py index 4e278f8d861..53881684382 100755 --- a/examples/logon/ntlogon/ntlogon.py +++ b/examples/logon/ntlogon/ntlogon.py @@ -180,7 +180,7 @@ def buildScript(buf, sections, group, user, ostype, machine, debug, pause): varsub = string.strip(vardef.group(2)) # and trailing spaces if varname == '': - print "Error: No substition name specified line: %d" % idx + print "Error: No substitution name specified line: %d" % idx sys.exit(1) if varsub == '': diff --git a/examples/pam_winbind/pam_winbind.conf b/examples/pam_winbind/pam_winbind.conf index 87bc388a45d..85cd513a787 100644 --- a/examples/pam_winbind/pam_winbind.conf +++ b/examples/pam_winbind/pam_winbind.conf @@ -25,7 +25,7 @@ # afterwards) ;krb5_ccache_type = -# make successful authentication dependend on membership of one SID +# make successful authentication dependent on membership of one SID # (can also take a name) ;require_membership_of = diff --git a/examples/pcap2nbench/README b/examples/pcap2nbench/README index 46f851439a8..09c30e08bef 100644 --- a/examples/pcap2nbench/README +++ b/examples/pcap2nbench/README @@ -5,7 +5,7 @@ About This program converts a libpcap network trace file (produced by ethereal or another pcap-aware network analyzer) into a output suitable for nbench. The -only option it takes it -i which supresses any reads/writes/closes that use a +only option it takes is -i which suppresses any reads/writes/closes that use a FID that does not have a corresponding ntcreateandx Limitations diff --git a/examples/printer-accounting/hp5-redir b/examples/printer-accounting/hp5-redir index ea1299068a3..e23f7188e66 100644 --- a/examples/printer-accounting/hp5-redir +++ b/examples/printer-accounting/hp5-redir @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# 0 == stdin == docuement +# 0 == stdin == document # 1 == stdout == printer # 2 == stderr == logging # diff --git a/examples/printer-accounting/lp-acct b/examples/printer-accounting/lp-acct index 91a3def08f8..3acdbb9356f 100644 --- a/examples/printer-accounting/lp-acct +++ b/examples/printer-accounting/lp-acct @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# 0 == stdin == docuement +# 0 == stdin == document # 1 == stdout == printer # 2 == stderr == logging # diff --git a/examples/scripts/idmap/README b/examples/scripts/idmap/README index 3032493cbc9..a8637bb7379 100644 --- a/examples/scripts/idmap/README +++ b/examples/scripts/idmap/README @@ -24,7 +24,7 @@ The idmap script option ----------------------- To resolve this problem the idmap tdb2 module has the ability to call -out to an external script whenever it meeds an unknown SID or UID/GID +out to an external script whenever it needs an unknown SID or UID/GID for the first time. It is then the job of that script to provide a mapping consistent with whatever external system is in place (such as NIS), and return the mapped result to winbind. diff --git a/examples/scripts/nmb/findsmb b/examples/scripts/nmb/findsmb index 7c58917f55a..5c668f3ebdb 100755 --- a/examples/scripts/nmb/findsmb +++ b/examples/scripts/nmb/findsmb @@ -7,7 +7,7 @@ # syntax: # findsmb [-d|-D] [-r] [subnet broadcast address] # -# with no agrument it will list machines on the current subnet +# with no argument it will list machines on the current subnet # # There will be a "+" in front of the workgroup name for machines that are # local master browsers for that workgroup. There will be an "*" in front diff --git a/examples/scripts/users_and_groups/adduserstogroups.pl b/examples/scripts/users_and_groups/adduserstogroups.pl index 67594287743..99837f9187f 100755 --- a/examples/scripts/users_and_groups/adduserstogroups.pl +++ b/examples/scripts/users_and_groups/adduserstogroups.pl @@ -88,7 +88,7 @@ if (exists($options{S})) { $server = $options{S}; } else { - print "ERROR: madatory argument '-S' missing\n"; + print "ERROR: mandatory argument '-S' missing\n"; usage(); exit 1; } diff --git a/examples/scripts/users_and_groups/createdomobj.pl b/examples/scripts/users_and_groups/createdomobj.pl index 919f75ad076..d53aefe0efc 100755 --- a/examples/scripts/users_and_groups/createdomobj.pl +++ b/examples/scripts/users_and_groups/createdomobj.pl @@ -87,7 +87,7 @@ if (exists($options{S})) { $server = $options{S}; } else { - print "ERROR: madatory argument '-S' missing\n"; + print "ERROR: mandatory argument '-S' missing\n"; usage(); exit 1; } diff --git a/examples/smb.conf.default b/examples/smb.conf.default index 2f207209018..a48a9e9f31c 100644 --- a/examples/smb.conf.default +++ b/examples/smb.conf.default @@ -112,7 +112,7 @@ #============================ Share Definitions ============================== [homes] comment = Home Directories - browseable = no + browsable = no writable = yes # Un-comment the following and create the netlogon directory for Domain Logons @@ -128,7 +128,7 @@ # the default is to use the user's home directory ;[Profiles] ; path = /usr/local/samba/profiles -; browseable = no +; browsable = no ; guest ok = yes @@ -137,7 +137,7 @@ [printers] comment = All Printers path = /usr/spool/samba - browseable = no + browsable = no # Set public = yes to allow user 'guest account' to print guest ok = no writable = no diff --git a/examples/validchars/readme b/examples/validchars/readme index 6487fbd766a..ebeda33ef59 100644 --- a/examples/validchars/readme +++ b/examples/validchars/readme @@ -8,7 +8,7 @@ I have not registered any (I consider `having no sex' is better than `testing for AIDS on a regular basis', if you know what I mean). This is VALIDCHR, a little DOS program I wrote to create -an apropriate `valid chars =' config parameter. +an appropriate `valid chars =' config parameter. It is freeware and is thought to be distributed freely with Samba. WARNING: diff --git a/examples/winexe/winexesvc.c b/examples/winexe/winexesvc.c index 02aa9df4b3d..3d2ebcce149 100644 --- a/examples/winexe/winexesvc.c +++ b/examples/winexe/winexesvc.c @@ -201,7 +201,7 @@ static int cmd_set(connection_context *c) } else if ((strstr(cmdline, var_runas) == cmdline) && (cmdline[l = strlen(var_runas)] == ' ')) { c->runas = strdup(cmdline + l + 1); } else { - hprintf(c->pipe, "error Unknown commad (%s)\n", c->cmd); + hprintf(c->pipe, "error Unknown command (%s)\n", c->cmd); goto finish; } res = 1; -- cgit v1.2.1