1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

examples: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Rowland Penny <rpenny@samba.org>
This commit is contained in:
Andreas Schneider 2023-03-22 10:05:24 +01:00 committed by Andreas Schneider
parent ff46836eec
commit 1ba146dda3
17 changed files with 26 additions and 26 deletions

View File

@ -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 "(");

View File

@ -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

View 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;
}

View 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"

View 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

View File

@ -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 == '':

View 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 =

View 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

View File

@ -1,6 +1,6 @@
#!/usr/bin/perl
#
# 0 == stdin == docuement
# 0 == stdin == document
# 1 == stdout == printer
# 2 == stderr == logging
#

View File

@ -1,6 +1,6 @@
#!/usr/bin/perl
#
# 0 == stdin == docuement
# 0 == stdin == document
# 1 == stdout == printer
# 2 == stderr == logging
#

View 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.

View File

@ -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

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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

View 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).
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:

View 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;