aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index 8f9a8f04..7ff063b2 100644
--- a/driver.c
+++ b/driver.c
@@ -493,6 +493,24 @@ struct method *proto;
#endif /* HAVE_RRESVPORT_H */
int num, count, deletions = 0;
+ /* lacking methods, there are some options that may fail */
+ if (!proto->is_old)
+ {
+ /* check for unsupported options */
+ if (queryctl->flush) {
+ fprintf(stderr,
+ "Option --flush is not supported with %s\n",
+ proto->name);
+ return(PS_SYNTAX);
+ }
+ else if (queryctl->fetchall) {
+ fprintf(stderr,
+ "Option --all is not supported with %s\n",
+ proto->name);
+ return(PS_SYNTAX);
+ }
+ }
+
tagnum = 0;
protocol = proto;