aboutsummaryrefslogtreecommitdiff
path: root/src/lssg.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2013-12-03 11:28:17 +0200
committerSergey Poznyakoff <gray@gnu.org>2013-12-03 11:28:17 +0200
commit495c4a5cadf67b7c9b5e0c8b224f7b68c42c8da4 (patch)
tree39ec139daae669e0618bedd1a929edf0695d0662 /src/lssg.c
parent155a76453f41b7ad80af4f8b4bf0539f2df32498 (diff)
downloadeclat-495c4a5cadf67b7c9b5e0c8b224f7b68c42c8da4.tar.gz
eclat-495c4a5cadf67b7c9b5e0c8b224f7b68c42c8da4.tar.bz2
Bugfix and compatibility change in lssg/sg
* src/lssg.c (eclat_describe_security_groups): Fix the --name option. * src/sg-cl.opt: Use -N as a shorcut for --next, and -n as the one for --name, for compatibility with lssg.
Diffstat (limited to 'src/lssg.c')
-rw-r--r--src/lssg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lssg.c b/src/lssg.c
index 9068a08..039feb1 100644
--- a/src/lssg.c
+++ b/src/lssg.c
@@ -29,14 +29,13 @@ eclat_describe_security_groups(eclat_command_env_t *env, int argc, char **argv)
{ "GroupId", MAP_GROUPID },
{ "GroupName", MAP_GROUPNAME }
};
- int n = !!name_option;
parse_options(env, argc, argv, &i);
argv += i;
argc -= i;
- translate_ids(argc, argv, rt[n].map);
+ translate_ids(argc, argv, rt[name_option].map);
- describe_query_create(env, argc, argv, rt[n].resid);
+ describe_query_create(env, argc, argv, rt[name_option].resid);
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.