cauthtool: verify set_uid arg

This commit is contained in:
Sage Weil 2010-03-05 16:22:33 -08:00
parent dc38d48948
commit ca02d68cc6

View File

@ -83,6 +83,7 @@ int main(int argc, const char **argv)
add_key ||
list ||
caps_fn ||
set_auid ||
print_key ||
create_keyring ||
import_keyring)) {
@ -93,7 +94,7 @@ int main(int argc, const char **argv)
cerr << "can't both gen_key and add_key" << std::endl;
usage();
}
if (caps_fn || add_key || gen_key || print_key) {
if (caps_fn || add_key || gen_key || print_key || set_auid) {
if (!name || !(*name)) {
cerr << "must specify entity name" << std::endl;
usage();