projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e6e886
)
btrfs-progs: fix test for return of realpath in find_mount_root()
author
Eric Sandeen
<sandeen@redhat.com>
Wed, 6 Nov 2013 23:15:43 +0000
(17:15 -0600)
committer
Chris Mason
<chris.mason@fusionio.com>
Thu, 7 Nov 2013 21:10:41 +0000
(16:10 -0500)
find_mount_root() tries to test for realpath() failure, but
tests the wrong value. Fix it.
Resolves-Coverity-CID: 1125940
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
cmds-send.c
patch
|
blob
|
history
diff --git
a/cmds-send.c
b/cmds-send.c
index
39110e7
..
53e9a53
100644
(file)
--- a/
cmds-send.c
+++ b/
cmds-send.c
@@
-98,7
+98,7
@@
int find_mount_root(const char *path, char **mount_root)
ret = 0;
*mount_root = realpath(longest_match, NULL);
- if (!mount_root)
+ if (!
*
mount_root)
ret = -errno;
free(longest_match);