summaryrefslogtreecommitdiffstats
path: root/utils/mount/nfsmount.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-08-03 13:23:29 -0400
committerNeil Brown <neilb@suse.de>2007-08-04 08:27:39 +1000
commit53a9b4a2ea971d5718ccfcc2f2825ff9af81cd23 (patch)
treef47a54c21336589b8cc3db3e6c28b70790e2a6a4 /utils/mount/nfsmount.c
parent9b640cdaa36e25e0f6e14a7a53237488717d4187 (diff)
downloadnfs-utils-53a9b4a2ea971d5718ccfcc2f2825ff9af81cd23.tar.gz
nfs-utils-53a9b4a2ea971d5718ccfcc2f2825ff9af81cd23.tar.xz
nfs-utils-53a9b4a2ea971d5718ccfcc2f2825ff9af81cd23.zip
mount.nfs: Support double-wide characters in printed strings
Previous NLS changes missed a spot or two. This patch tries to get most of them, but probably misses a few more. In errors.c:mount_errors() I've removed a period at the end of the error messages; this is consistent with other error messages I've examined. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'utils/mount/nfsmount.c')
-rw-r--r--utils/mount/nfsmount.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/mount/nfsmount.c b/utils/mount/nfsmount.c
index bd3403c..a56bfe1 100644
--- a/utils/mount/nfsmount.c
+++ b/utils/mount/nfsmount.c
@@ -190,7 +190,6 @@ parse_options(char *old_opts, struct nfs_mount_data *data,
if ((opteq = strchr(opt, '=')) && isdigit(opteq[1])) {
int val = atoi(opteq + 1);
*opteq = '\0';
-/* printf("opt=%s\n", opt); */
if (!strcmp(opt, "rsize"))
data->rsize = val;
else if (!strcmp(opt, "wsize"))
@@ -432,7 +431,7 @@ parse_options(char *old_opts, struct nfs_mount_data *data,
val ? "" : "no", opt);
goto out_bad;
}
- sprintf(cbuf, val ? "%s,":"no%s,", opt);
+ sprintf(cbuf, val ? "%s," : "no%s,", opt);
}
len += strlen(cbuf);
if (len >= opt_size) {