aboutsummaryrefslogtreecommitdiff
path: root/etc/sg.fln
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-11-28 16:06:56 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2013-11-28 16:33:57 +0200
commit155a76453f41b7ad80af4f8b4bf0539f2df32498 (patch)
treeb5322a09cf94efda672f7b195d6e8e5ff41d35aa /etc/sg.fln
parentd9fbe79146e386cc29a6000cb55d6fb5337e5214 (diff)
downloadeclat-155a76453f41b7ad80af4f8b4bf0539f2df32498.tar.gz
eclat-155a76453f41b7ad80af4f8b4bf0539f2df32498.tar.bz2
Implement sg command
* etc/sg.fln: New file. * etc/Makefile.am (FLNFILES): Add sg.fln * src/sg.c: New file. * src/sg-cl.opt: New file. * src/Makefile.am (eclat_SOURCES): Add sg.c (OPTFILES): Add sg-cl.opt * src/eclat.c (cmdtab): Add entry for "sg". (eclat_do_command): Ignore tag if it is NULL. * src/eclat.h (eclat_sg): New proto.
Diffstat (limited to 'etc/sg.fln')
-rw-r--r--etc/sg.fln28
1 files changed, 28 insertions, 0 deletions
diff --git a/etc/sg.fln b/etc/sg.fln
new file mode 100644
index 0000000..82247be
--- /dev/null
+++ b/etc/sg.fln
@@ -0,0 +1,28 @@
+/* This file is part of Eclat.
+ Copyright (C) 2012, 2013 Sergey Poznyakoff.
+
+ Eclat is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Eclat is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Eclat. If not, see <http://www.gnu.org/licenses/>. */
+
+if (.AuthorizeSecurityGroupIngressResponse.return) {
+ if (!.AuthorizeSecurityGroupIngressResponse.return[true]) {
+ error("Return: ",.AuthorizeSecurityGroupIngressResponse.return,"\n");
+ exit(1);
+ }
+} else if (.RevokeSecurityGroupIngressResponse.return) {
+ if (!.RevokeSecurityGroupIngressResponse.return[true]) {
+ error("Return: ",.RevokeSecurityGroupIngressResponse.return,"\n");
+ exit(1);
+ }
+}
+

Return to:

Send suggestions and report system problems to the System administrator.