From: Can ÜNSAL <[email protected]>

When efibootguard is invoked to read environment variables with
ebg_env_open_current /proc/mounts file descriptor is opened in get_mountpoint
without closing it.

Signed-off-by: Can ÜNSAL <[email protected]>
---
 env/env_disk_utils.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/env/env_disk_utils.c b/env/env_disk_utils.c
index 9fad94b..78ad130 100644
--- a/env/env_disk_utils.c
+++ b/env/env_disk_utils.c
@@ -39,6 +39,7 @@ char *get_mountpoint(char *devpath)
                        if (!mntpoint) {
                                break;
                        }
+                       endmntent(mtab);
                        return mntpoint;
                }
        }
-- 
2.11.0

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/20190325123539.109952-1-tolga.hosgor%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to