mount.nfs: Add braces around EBUSY code
Subsystems (2)
PATCH 1/1 mount.nfs: Add braces around EBUSY code
Signed-off-by Steve Dickson <[email protected]>
--- utils/mount/stropts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
utils/mount/stropts.c +2 -1
@@ -1080,7 +1080,7 @@ static int nfsmount_fg(struct nfsmount_info *mi)return EX_SUCCESS ;#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers" - if (errno == EBUSY && is_mountpoint(mi->node)) +if (errno ==EBUSY &&is_mountpoint (mi->node)) {#pragma GCC diagnostic warning "-Wdiscarded-qualifiers"/* * EBUSY can happen when mounting a filesystem that
@@ -1090,6 +1090,7 @@ static int nfsmount_fg(struct nfsmount_info *mi)* Only error out in the latter case. */ return EX_SUCCESS ; + }if (nfs_is_permanent_error (errno))break ;
Signature · 1 line
2.17.2