aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2008-02-08 21:59:24 +0000
committerRuss Allbery <rra@stanford.edu>2008-02-08 21:59:24 +0000
commitda92a0d5e259a126095e120c7938c6e3be27618c (patch)
tree344d0c54a78a594561686298a5af543bc2903ab4
parent55fffc9edba2e5af12c0d3aa71e039efd9778c61 (diff)
Fix the wallet client to use check instead of exists.
-rw-r--r--NEWS4
-rw-r--r--client/remctl.c2
-rw-r--r--client/wallet.pod4
-rwxr-xr-xtests/data/cmd-fake2
4 files changed, 8 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index e7dc39e..bf6f95f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,9 @@
User-Visible wallet Changes
+wallet 0.8 (unreleased)
+
+ Fix the wallet client to use check instead of exists.
+
wallet 0.7 (2008-02-08)
Add new exists and autocreate wallet server interfaces. The first
diff --git a/client/remctl.c b/client/remctl.c
index aa9a9f8..74e2cf5 100644
--- a/client/remctl.c
+++ b/client/remctl.c
@@ -87,7 +87,7 @@ object_exists(struct remctl *r, const char *prefix, const char *type,
size_t length;
command[0] = prefix;
- command[1] = "exists";
+ command[1] = "check";
command[2] = type;
command[3] = name;
command[4] = NULL;
diff --git a/client/wallet.pod b/client/wallet.pod
index 3f2ca51..b6e8ff4 100644
--- a/client/wallet.pod
+++ b/client/wallet.pod
@@ -262,7 +262,7 @@ given. This may trigger generation of new data and invalidate old data
for that object depending on the object type.
If an object with type <type> and name <name> does not already exist when
-this command is issued (as checked with the exists interface), B<wallet>
+this command is issued (as checked with the check interface), B<wallet>
will attempt to automatically create it (using autocreate).
=item getacl <type> <name> <acl>
@@ -334,7 +334,7 @@ length of the operating system of the wallet server. These restrictions
will be lifted in the future.
If an object with type <type> and name <name> does not already exist when
-this command is issued (as checked with the exists interface), B<wallet>
+this command is issued (as checked with the check interface), B<wallet>
will attempt to automatically create it (using autocreate).
=back
diff --git a/tests/data/cmd-fake b/tests/data/cmd-fake
index 17bbb90..d12f839 100755
--- a/tests/data/cmd-fake
+++ b/tests/data/cmd-fake
@@ -67,7 +67,7 @@ setattr)
;;
esac
;;
-exists)
+check)
if [ -n "$2" ] ; then
echo "Too many arguments" >&2
exit 1