diff options
| author | Eitan Adler <eadler@FreeBSD.org> | 2018-06-25 11:44:41 +0000 |
|---|---|---|
| committer | Eitan Adler <eadler@FreeBSD.org> | 2018-06-25 11:44:41 +0000 |
| commit | bec6dc30e1a6ec4e96d8b29510d345e3f2a8ea40 (patch) | |
| tree | 59026cb93e9dfedbe7736d09808cc3a68c6e97f1 /usr.bin | |
| parent | 7f12ebe58305d37fd1f8fb5583bf046c1f0bf51f (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/users/users.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/users/users.cc b/usr.bin/users/users.cc index 40d5c3017ad9c..44b1f591e0516 100644 --- a/usr.bin/users/users.cc +++ b/usr.bin/users/users.cc @@ -32,6 +32,7 @@ __FBSDID("$FreeBSD$"); #include <sys/capsicum.h> +#include <capsicum_helpers.h> #include <err.h> #include <errno.h> #include <utmpx.h> @@ -56,7 +57,7 @@ main(int argc, char **) setutxent(); - if (cap_enter() < 0 && errno != ENOSYS) + if (caph_enter()) err(1, "Failed to enter capability mode."); while ((ut = getutxent()) != NULL) |
