Sun, 17 Dec 2023 15:33:50 +0100
fix faulty string to int conversion utilities
Probably it was expected that errno is set to EINVAL when illegal characters are encountered. But this is not standard and does not happen on every system, allowing illegal strings to be parsed as valid integers.
695
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
1 | --- |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
2 | title: 'dav rename' |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
3 | --- |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
4 | |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
5 | **`rename [-pcO] [-L <lock>] <url> <name>`** |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
6 | |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
7 | Changes the name of a resource to *name*. |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
8 | |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
9 | In case of unencrypted resources, this will do a MOVE-Request. On encrypted resources, this command will do a PROPPATCH-Request, changing the *crypto-name* property. |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
10 | |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
11 | **`-p`** disable file name and path decryption for *url* |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
12 | |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
13 | **`-c`** enable file name and path decryption for *url* |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
14 | |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
15 | **`-O`** overwrite the destination resource |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
16 | |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
17 | **`-L <lock>`** use a lock token. See [dav lock][1] |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
18 | |
7877dae0d8fe
add documentation for rename command
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
694
diff
changeset
|
19 | [1]: ./lock.html |