xfs
[Top] [All Lists]

[PATCH 01/11] xfsprogs: undefined variable fix

To: xfs@xxxxxxxxxxx
Subject: [PATCH 01/11] xfsprogs: undefined variable fix
From: Jan Tulak <jtulak@xxxxxxxxxx>
Date: Mon, 17 Aug 2015 18:23:16 +0200
Cc: hch@xxxxxxxxxxxxx, Jan Tulak <jtulak@xxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1439828606-7886-1-git-send-email-jtulak@xxxxxxxxxx>
References: <1439828606-7886-1-git-send-email-jtulak@xxxxxxxxxx>
Typo fix, which wasn't caught earlier due to #ifdef branching.  The
'rmnttomname' does not exists anywhere and looks like a hybrid between
rmntfromname and rmntonname. And because the previous 'if' has
'fromname' on both arguments of realpath, I choosed the same approach
when fixing it.

Signed-off-by: Jan Tulak <jtulak@xxxxxxxxxx>
---
 libxcmd/paths.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libxcmd/paths.c b/libxcmd/paths.c
index c56b06b..5c65737 100644
--- a/libxcmd/paths.c
+++ b/libxcmd/paths.c
@@ -364,7 +364,7 @@ fs_table_initialise_mounts(
                        continue;
                if (!realpath(stats[i].f_mntfromname, rmntfromname))
                        continue;
-               if (!realpath(stats[i].f_mntonname, rmnttomname)))
+               if (!realpath(stats[i].f_mntonname, rmntonname))
                        continue;
 
                if (path &&
-- 
2.4.5

<Prev in Thread] Current Thread [Next in Thread>