examples: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Wed, 22 Mar 2023 09:05:24 +0000 (10:05 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 28 Mar 2023 09:33:31 +0000 (09:33 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Rowland Penny <rpenny@samba.org>
17 files changed:
examples/LDAP/ol-schema-migrate.pl
examples/dce-dfs/smb.conf
examples/libsmbclient/testbrowse2.c
examples/logon/mklogon/mklogon.conf
examples/logon/ntlogon/README
examples/logon/ntlogon/ntlogon.py
examples/pam_winbind/pam_winbind.conf
examples/pcap2nbench/README
examples/printer-accounting/hp5-redir
examples/printer-accounting/lp-acct
examples/scripts/idmap/README
examples/scripts/nmb/findsmb
examples/scripts/users_and_groups/adduserstogroups.pl
examples/scripts/users_and_groups/createdomobj.pl
examples/smb.conf.default
examples/validchars/readme
examples/winexe/winexesvc.c

index 2e8f929f96d96e722f40eda3855d726c4ff59854..c0a6f016ffd3bfeed4824ee56e62edaeed957022 100755 (executable)
@@ -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 "(");
index 1f060282c370e891be54bfdc1839b3cf3279225e..f0071637e28fd3d2688cffa0e828d2da1d52ff4a 100644 (file)
@@ -8,7 +8,7 @@
 
 [homes]
    comment = Home Directories
-   browseable = no
+   browsable = no
    read only = no
    create mode = 0750
 
 [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
 
index d858ba96312074c9abbafe16f8aa57fa7d80a583..c1d564464d2c624015f02847a5798b7dc241b41a 100644 (file)
@@ -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;
        }
 
index da222eb3eacbc07950113606d1fc87a66eb8d5bc..9e585c57dc9b37777d3a154e6d3746588e6c0c24 100644 (file)
@@ -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"
 
index e33c565d717762afe9413a2d20f1caab725c9602..da5256240f97a4613993b98d434b12a2bc820a4b 100644 (file)
@@ -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
index 4e278f8d8618339d1b0f3f4f6d806623d2557907..53881684382b07a21f19b17501ec2592787e9f8b 100755 (executable)
@@ -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 == '':
index 87bc388a45dcfea7bd7935227d5c3629694f5fdf..85cd513a7871231f8aa8eacc95c3b648f2fa2dcc 100644 (file)
@@ -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 =
 
index 46f851439a8ddb2bc0b4c318943ac635cb8f4d3e..09c30e08bef21364e15c14a47ba76bc722e979cc 100644 (file)
@@ -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
index ea1299068a3347da9977dce1a558af62d84a9e0f..e23f7188e66419e27db7f59f3ef5feaea4116893 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 #
-# 0 == stdin  == docuement
+# 0 == stdin  == document
 # 1 == stdout == printer
 # 2 == stderr == logging
 #
index 91a3def08f8fdb7d5dd0da073c77b30654af266a..3acdbb9356fe798f2774ab468b2cd50aab57dcc6 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 #
-# 0 == stdin  == docuement
+# 0 == stdin  == document
 # 1 == stdout == printer
 # 2 == stderr == logging
 #
index 3032493cbc947e2460c2f32e7120b952070688cb..a8637bb737999e11c62f4b81bfb5de9f4f4ae2f8 100644 (file)
@@ -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.
index 7c58917f55a31a5185ef428485d28df284439683..5c668f3ebdb8863f6e15beb722f537d44b3c66ce 100755 (executable)
@@ -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
index 675942877436114a3852cd45dbb6f003844ba957..99837f9187f98312ee3467381aa2b7250aa3618e 100755 (executable)
@@ -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;
 }
index 919f75ad07699f1445ba1e5367690c2d35044296..d53aefe0efc1cf02fc2bff27569e9216cb987515 100755 (executable)
@@ -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;
 }
index 2f207209018b9fdd33d7eadc0d23f915b2e03e64..a48a9e9f31c393d12e65298aa62302ba131b4a0f 100644 (file)
 #============================ Share Definitions ==============================
 [homes]
    comment = Home Directories
-   browseable = no
+   browsable = no
    writable = yes
 
 # Un-comment the following and create the netlogon directory for Domain Logons
 # the default is to use the user's home directory
 ;[Profiles]
 ;    path = /usr/local/samba/profiles
-;    browseable = no
+;    browsable = no
 ;    guest ok = yes
 
 
 [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
index 6487fbd766a4ee003236b2ae600e2b85e51689ea..ebeda33ef59eeb88d0d603a4861b16a8e4827688 100644 (file)
@@ -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).\r
 \r
 This is VALIDCHR, a little DOS program I wrote to create\r
-an apropriate `valid chars =' config parameter.\r
+an appropriate `valid chars =' config parameter.\r
 It is freeware and is thought to be distributed freely with Samba.\r
 \r
 WARNING:\r
index 02aa9df4b3dd9a0043d6c67586abc6fb22f36ad1..3d2ebcce149379e22143cb1295ee3812ae337c21 100644 (file)
@@ -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;