nfs-utils: Spelling fixes
Subsystems (2)
PATCH 1/1 nfs-utils: Spelling fixes
Fix some typos in the nfs.conf related code
Signed-off-by Justin Mitchell <[email protected]>
--- support/nfs/conffile.c | 2 +- tools/nfsconf/nfsconf.man | 4 ++-- tools/nfsconf/nfsconfcli.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-)
support/nfs/conffile.c +1 -1
@@ -640,7 +640,7 @@ conf_get_num(const char *section, const char *tag, int def)/* * Return the Boolean value denoted by TAG in section SECTION, or DEF * if that tags does not exist. -* FALSE is returned for case-insensitve comparisons with 0, f, false, n, no, off +* FALSE is returned for case-insensitive comparisons with 0, f, false, n, no, off * TRUE is returned for 1, t, true, y, yes, on * A failure to match one of these results in DEF */
tools/nfsconf/nfsconf.man +2 -2
@@ -79,7 +79,7 @@ Select a different config file to operate upon, default is Select a specific sub-section .SH EXIT STATUS .SS \fB\-\-isset\fR mode -In this mode the command will return success (0) if the selected tag has a value, any other exit code indicates the value is not set, or some other error has occured. +In this mode the command will return success (0) if the selected tag has a value, any other exit code indicates the value is not set, or some other error has occurred. .SS all other modes Success is indicated by an exit status of zero, any other status indicates an error. Error messages are output on stderr, and increasing verbosity will give more detailed explanations if any are available. .SH EXAMPLES
@@ -87,7 +87,7 @@ Success is indicated by an exit status of zero, any other status indicates an er .B nfsconf -v --dump --file /tmp/testconf.conf sorted.conf Check a new config file for syntax errors and output a sorted version for ease of comparison with existing settings. .TP -.B if ! nfsconf --isset gssd preferred-realm ; then echo 'No prefered realm configured for gss'; fi +.B if ! nfsconf --isset gssd preferred-realm ; then echo 'No preferred realm configured for gss'; fi The tool allows for easy testing of configuration values from shell scripts, here we test if a specific value has been set. .TP .B nfsconf --file /etc/nfsmount.conf --get --arg /home MountPoint background
tools/nfsconf/nfsconfcli.c +3 -3
@@ -69,7 +69,7 @@ int main(int argc, char **argv)case 0 :break ;case 'f' : -/* user specified souce path for config */ +/* user specified source path for config */ confpath = optarg;break ;case 'a' :
@@ -110,7 +110,7 @@ int main(int argc, char **argv)xlog_config (D_ALL ,1 );xlog_stderr (1 );xlog_syslog (0 ); -xlog_open ("nfsconftool" ); +xlog_open ("nfsconf" );if (mode ==MODE_NONE ) {fprintf (stderr,"Error: No MODE selected.\n" );
@@ -223,7 +223,7 @@ int main(int argc, char **argv) ret =1 ; } }else { -fprintf (stderr,"Mode not yet implimented.\n" ); +fprintf (stderr,"Mode not yet implemented.\n" ); ret =2 ; }
Signature · 1 line
1.8.3.1
Quoted 3 lines · Justin Mitchell
Fix some typos in the nfs.conf related code
Signed-off-by Justin Mitchell <[email protected]>
Committed...
steved.
Quoted 73 lines
--- support/nfs/conffile.c | 2 +- tools/nfsconf/nfsconf.man | 4 ++-- tools/nfsconf/nfsconfcli.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-)support/nfs/conffile.c +1
-1@@ -640,7 +640,7 @@ conf_get_num(const char *section, const char *tag, int def)/* * Return the Boolean value denoted by TAG in section SECTION, or DEF * if that tags does not exist. -* FALSE is returned for case-insensitve comparisons with 0, f, false, n, no, off +* FALSE is returned for case-insensitive comparisons with 0, f, false, n, no, off * TRUE is returned for 1, t, true, y, yes, on * A failure to match one of these results in DEF */ tools/nfsconf/nfsconf.man +2
-2@@ -79,7 +79,7 @@ Select a different config file to operate upon, default is Select a specific sub-section .SH EXIT STATUS .SS \fB\-\-isset\fR mode -In this mode the command will return success (0) if the selected tag has a value, any other exit code indicates the value is not set, or some other error has occured. +In this mode the command will return success (0) if the selected tag has a value, any other exit code indicates the value is not set, or some other error has occurred. .SS all other modes Success is indicated by an exit status of zero, any other status indicates an error. Error messages are output on stderr, and increasing verbosity will give more detailed explanations if any are available. .SH EXAMPLES@@ -87,7 +87,7 @@ Success is indicated by an exit status of zero, any other status indicates an er .B nfsconf -v --dump --file /tmp/testconf.conf sorted.conf Check a new config file for syntax errors and output a sorted version for ease of comparison with existing settings. .TP -.B if ! nfsconf --isset gssd preferred-realm ; then echo 'No prefered realm configured for gss'; fi +.B if ! nfsconf --isset gssd preferred-realm ; then echo 'No preferred realm configured for gss'; fi The tool allows for easy testing of configuration values from shell scripts, here we test if a specific value has been set. .TP .B nfsconf --file /etc/nfsmount.conf --get --arg /home MountPoint backgroundtools/nfsconf/nfsconfcli.c +3
-3@@ -69,7 +69,7 @@ int main(int argc, char **argv)case 0 :break ;case 'f' : -/* user specified souce path for config */ +/* user specified source path for config */ confpath = optarg;break ;case 'a' :@@ -110,7 +110,7 @@ int main(int argc, char **argv)xlog_config (D_ALL ,1 );xlog_stderr (1 );xlog_syslog (0 ); -xlog_open ("nfsconftool" ); +xlog_open ("nfsconf" );if (mode ==MODE_NONE ) {fprintf (stderr,"Error: No MODE selected.\n" );@@ -223,7 +223,7 @@ int main(int argc, char **argv) ret =1 ; } }else { -fprintf (stderr,"Mode not yet implimented.\n" ); +fprintf (stderr,"Mode not yet implemented.\n" ); ret =2 ; }