diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-02 18:40:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-02 18:40:43 +0100 |
commit | 95c4fe827195b47fad7cc87a3f84bf3af6b657c2 (patch) | |
tree | 7fe47e1521c7ae3846c8a71327af37efd23609e2 /src/libsystemd-bus/test-bus-creds.c | |
parent | a009c158b098e961fd71db47a31ca15048c9816e (diff) |
busctl: add command to dump creds of a peer or pid
(also, rename _SD_BUS_CREDS_MAX to _SD_BUX_CRED_ALL, since "MAX" so far
was used to indicate one higher than the highest valid value, and this
is not correct here.)
Diffstat (limited to 'src/libsystemd-bus/test-bus-creds.c')
-rw-r--r-- | src/libsystemd-bus/test-bus-creds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/test-bus-creds.c b/src/libsystemd-bus/test-bus-creds.c index 0a9b2ca466..966b84c39e 100644 --- a/src/libsystemd-bus/test-bus-creds.c +++ b/src/libsystemd-bus/test-bus-creds.c @@ -28,14 +28,14 @@ int main(int argc, char *argv[]) { _cleanup_bus_creds_unref_ sd_bus_creds *creds = NULL; int r; - r = sd_bus_creds_new_from_pid(0, _SD_BUS_CREDS_MAX, &creds); + r = sd_bus_creds_new_from_pid(0, _SD_BUS_CREDS_ALL, &creds); assert_se(r >= 0); bus_creds_dump(creds, NULL); creds = sd_bus_creds_unref(creds); - r = sd_bus_creds_new_from_pid(1, _SD_BUS_CREDS_MAX, &creds); + r = sd_bus_creds_new_from_pid(1, _SD_BUS_CREDS_ALL, &creds); if (r != -EACCES) { assert_se(r >= 0); putchar('\n'); |