Files
sparsebundlefs-mirror/sparsebundlefs.cpp
Tor Arne Vestbø 9a4d8f3567 Make use of getgrnam() thread-safe
getgrnam is not thread-safe on Linux (but is on macOS). To ensure
we don't call it from two threads at the same time we move its use
inside a lambda that initializes a local static. This is fine, as
we don't expect the 'nogroup' gid to change.
2018-09-11 23:18:31 +02:00

19 KiB