]> git.puffer.fish Git - matthieu/frr.git/commit
libs: return from change_caps if no caps
authorMark Stapp <mjs@cisco.com>
Fri, 31 Jan 2025 18:13:48 +0000 (13:13 -0500)
committerMark Stapp <mjs@cisco.com>
Fri, 31 Jan 2025 18:13:48 +0000 (13:13 -0500)
commite13a4485bf9d3e1383dc88c32fbb48f6abe1df63
tree3432548bdecce34d46520a69385953ad044f74cb
parentde8f52b52508b7ba4742e03d1569a1f5b2203dc7
libs: return from change_caps if no caps

When called without caps/privs, just return from "change_caps"
instead of exiting - it's possible that a process may not need
privs, but a lib (for example) may use the api.

Signed-off-by: Mark Stapp <mjs@cisco.com>
lib/privs.c