aboutsummaryrefslogtreecommitdiff
path: root/util-linux/nfsmount.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/nfsmount.c')
-rw-r--r--util-linux/nfsmount.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c
index 4241f79f5..34f23f5aa 100644
--- a/util-linux/nfsmount.c
+++ b/util-linux/nfsmount.c
@@ -24,7 +24,7 @@
24 * 24 *
25 * 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org> 25 * 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
26 * - added Native Language Support 26 * - added Native Language Support
27 * 27 *
28 * Modified by Olaf Kirch and Trond Myklebust for new NFS code, 28 * Modified by Olaf Kirch and Trond Myklebust for new NFS code,
29 * plus NFSv3 stuff. 29 * plus NFSv3 stuff.
30 */ 30 */
@@ -95,7 +95,7 @@ enum nfs_stat {
95 NFSERR_BADTYPE = 10007, /* v3 */ 95 NFSERR_BADTYPE = 10007, /* v3 */
96 NFSERR_JUKEBOX = 10008 /* v3 */ 96 NFSERR_JUKEBOX = 10008 /* v3 */
97}; 97};
98 98
99#define NFS_PROGRAM 100003 99#define NFS_PROGRAM 100003
100 100
101 101
@@ -445,7 +445,7 @@ int nfsmount(const char *spec, const char *node, int *flags,
445 445
446 for (opt = strtok(old_opts, ","); opt; opt = strtok(NULL, ",")) { 446 for (opt = strtok(old_opts, ","); opt; opt = strtok(NULL, ",")) {
447 if ((opteq = strchr(opt, '='))) { 447 if ((opteq = strchr(opt, '='))) {
448 val = atoi(opteq + 1); 448 val = atoi(opteq + 1);
449 *opteq = '\0'; 449 *opteq = '\0';
450 if (!strcmp(opt, "rsize")) 450 if (!strcmp(opt, "rsize"))
451 data.rsize = val; 451 data.rsize = val;
@@ -515,9 +515,9 @@ int nfsmount(const char *spec, const char *node, int *flags,
515 val = 0; 515 val = 0;
516 opt += 2; 516 opt += 2;
517 } 517 }
518 if (!strcmp(opt, "bg")) 518 if (!strcmp(opt, "bg"))
519 bg = val; 519 bg = val;
520 else if (!strcmp(opt, "fg")) 520 else if (!strcmp(opt, "fg"))
521 bg = !val; 521 bg = !val;
522 else if (!strcmp(opt, "soft")) 522 else if (!strcmp(opt, "soft"))
523 soft = val; 523 soft = val;
@@ -872,7 +872,7 @@ fail:
872 if (fsock != -1) 872 if (fsock != -1)
873 close(fsock); 873 close(fsock);
874 return retval; 874 return retval;
875} 875}
876 876
877/* 877/*
878 * We need to translate between nfs status return values and 878 * We need to translate between nfs status return values and