diff options
| author | Christian Hopps <chopps@labn.net> | 2024-03-17 04:27:31 -0400 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2024-03-17 04:53:13 -0400 |
| commit | 71368f9e067234465fa9298455a71eef84f86f2a (patch) | |
| tree | 08983ef8dc9d2544e0499f6ffd524bda0de2f765 /lib/libfrr.c | |
| parent | 387a035b660b88a4899cba0d0b00face8c4946ca (diff) | |
tests: enable code coverage reporting with topotests
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/libfrr.c')
| -rw-r--r-- | lib/libfrr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libfrr.c b/lib/libfrr.c index 9e472054dd..058acf4136 100644 --- a/lib/libfrr.c +++ b/lib/libfrr.c @@ -319,7 +319,12 @@ void frr_preinit(struct frr_daemon_info *daemon, int argc, char **argv) char *p = strrchr(argv[0], '/'); di->progname = p ? p + 1 : argv[0]; - umask(0027); + if (!getenv("GCOV_PREFIX")) + umask(0027); + else { + /* If we are profiling use a more generous umask */ + umask(0002); + } log_args_init(daemon->early_logging); |
