summaryrefslogtreecommitdiff
path: root/clients/zctl/zctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'clients/zctl/zctl.c')
-rw-r--r--clients/zctl/zctl.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/clients/zctl/zctl.c b/clients/zctl/zctl.c
index 706f3cd..1dfa792 100644
--- a/clients/zctl/zctl.c
+++ b/clients/zctl/zctl.c
@@ -217,12 +217,17 @@ flush_locations(int argc,
{
int retval;
- if (argc > 1) {
- fprintf(stderr,"Usage: %s\n",argv[0]);
+ if (argc > 2) {
+ fprintf(stderr,"Usage: %s [user]\n",argv[0]);
return;
}
- if ((retval = ZFlushMyLocations()) != ZERR_NONE)
+ if (argc > 1)
+ retval = ZFlushUserLocations(argv[1]);
+ else
+ retval = ZFlushMyLocations();
+
+ if (retval != ZERR_NONE)
com_err(whoami, retval, "while flushing locations");
}