X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fstropts.c;h=f73521f2c7812e199b6c6ab37b26d1aa1b9bad47;hp=236a3b455f078aad944b72ac666fabb6bd4066ad;hb=af5939d15a41b337cc499a04fe4001a5cd51fdce;hpb=84b4008aaa7f85e1f9de265ee5c80a4a48fb31dc diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c index 236a3b4..f73521f 100644 --- a/utils/mount/stropts.c +++ b/utils/mount/stropts.c @@ -243,12 +243,12 @@ static int append_clientaddr_opt(struct sockaddr_in *saddr, char **extra_opts) * @extra_opts: pointer to C string containing fs-specific mount options * (possibly also a return argument) * @fake: flag indicating whether to carry out the whole operation - * @bg: one if this is a backgrounded mount attempt + * @child: one if this is a backgrounded mount * * XXX: need to handle bg, fg, and retry options. */ int nfsmount_s(const char *spec, const char *node, int flags, - char **extra_opts, int fake, int bg) + char **extra_opts, int fake, int child) { struct sockaddr_in saddr; char *hostname; @@ -263,7 +263,7 @@ int nfsmount_s(const char *spec, const char *node, int flags, extract_interesting_options(*extra_opts); - if (!bg && addr_opt) { + if (!child && addr_opt) { nfs_error(_("%s: Illegal option: 'addr='"), progname); return EX_FAIL; } @@ -283,7 +283,7 @@ int nfsmount_s(const char *spec, const char *node, int flags, } } - return 0; + return EX_SUCCESS; } /* @@ -339,5 +339,5 @@ int nfs4mount_s(const char *spec, const char *node, int flags, } } - return 0; + return EX_SUCCESS; }