diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-08-31 18:12:25 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-09-08 09:36:22 -0400 |
commit | 8443d24c0584f45151e0c80506d7a572b8a38ed7 (patch) | |
tree | 3df77db1747c04ed38095bb6b78087c6534adc50 /src/tools/tools_util.h | |
parent | 4f6a396fcf16f97b2abc3d0cba10e9aa9bc38619 (diff) | |
download | sssd-8443d24c0584f45151e0c80506d7a572b8a38ed7.tar.gz sssd-8443d24c0584f45151e0c80506d7a572b8a38ed7.tar.bz2 sssd-8443d24c0584f45151e0c80506d7a572b8a38ed7.zip |
Fix assorted minor bugs in sss_ tools
Fixes: #585
Diffstat (limited to 'src/tools/tools_util.h')
-rw-r--r-- | src/tools/tools_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/tools_util.h b/src/tools/tools_util.h index 84fc3be5..e8b25361 100644 --- a/src/tools/tools_util.h +++ b/src/tools/tools_util.h @@ -27,6 +27,12 @@ #include "util/util.h" +#define BAD_POPT_PARAMS(pc, msg, val, label) do { \ + usage(pc, msg); \ + val = EXIT_FAILURE; \ + goto label; \ +} while(0) + #define CHECK_ROOT(val, prg_name) do { \ val = getuid(); \ if (val != 0) { \ |