diff options
author | Russ Allbery <eagle@eyrie.org> | 2014-12-08 18:33:09 -0800 |
---|---|---|
committer | Russ Allbery <eagle@eyrie.org> | 2014-12-08 18:33:09 -0800 |
commit | 535ab35781b30805962201874ffff16492ca265d (patch) | |
tree | 433a3446b17227a87f29e064aa710a88f7f8a4ac /server/wallet-backend | |
parent | d5968989923768688b7bd2e4279a9db43a2b93df (diff) | |
parent | 49f5b0d38e96d13b6cfb329b21599f9d6ff853d6 (diff) |
Merge pull request #1 from jonrober/master
Duo and rename updates
Diffstat (limited to 'server/wallet-backend')
-rwxr-xr-x | server/wallet-backend | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/wallet-backend b/server/wallet-backend index a2e6e6f..8dfc952 100755 --- a/server/wallet-backend +++ b/server/wallet-backend @@ -287,6 +287,9 @@ sub command { failure ($server->error, @_); } } + } elsif ($command eq 'rename') { + check_args (3, 3, [], @args); + $server->rename (@args) or failure ($server->error, @_); } elsif ($command eq 'setacl') { check_args (4, 4, [], @args); $server->acl (@args) or failure ($server->error, @_); @@ -552,6 +555,12 @@ If <owner> is given, sets the owner of the object identified by <type> and <name> to <owner>. If <owner> is the empty string, clears the owner of the object. +=item rename <type> <name> <new-name> + +Renames an existing object. This currently only supports file objects, +where it renames the object itself, then the name and location of the +object in the file store. + =item setacl <type> <name> <acl> <id> Sets the ACL <acl>, which must be one of C<get>, C<store>, C<show>, |