docs/html/edit.html

Sun, 17 Dec 2023 15:33:50 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 17 Dec 2023 15:33:50 +0100
changeset 800
30d484806c2b
parent 722
d78619cc5a4d
permissions
-rw-r--r--

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.

722
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 <html xmlns="http://www.w3.org/1999/xhtml">
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 <head>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 <meta http-equiv="Content-Style-Type" content="text/css" />
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 <meta name="generator" content="pandoc" />
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 <title>dav edit</title>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8 <style type="text/css">code{white-space: pre;}</style>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 <link rel="stylesheet" href="davdoc.css" type="text/css" />
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 </head>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11 <body>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 <div class="header">
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 <a href="./index.html"><span>DavUtils documentation</span></a>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 </div>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15 <div class="sidebar">
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 <div class="nav">
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 <h3>dav</h3>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 <ul>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 <li><a href="getting-started.html">Getting started</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 <li><a href="commands.html">Commands</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 <ul>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 <li><a href="list.html">list</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 <li><a href="get.html">get</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 <li><a href="put.html">put</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 <li><a href="edit.html">edit</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 <li><a href="mkdir.html">mkdir</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27 <li><a href="remove.html">remove</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 <li><a href="copy.html">copy</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 <li><a href="move.html">move</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30 <li><a href="rename.html">rename</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31 <li><a href="export.html">export</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32 <li><a href="import.html">import</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
33 <li><a href="get-property.html">get-property</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
34 <li><a href="set-property.html">set-property</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
35 <li><a href="remove-property.html">remove-property</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
36 <li><a href="lock.html">lock</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
37 <li><a href="unlock.html">unlock</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
38 <li><a href="info.html">info</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
39 <li><a href="date.html">date</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
40 <li><a href="versioncontrol.html">versioncontrol</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
41 <li><a href="list-versions.html">list-versions</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
42 <li><a href="checkout.html">checkout</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
43 <li><a href="checkin.html">checkin</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
44 <li><a href="uncheckout.html">uncheckout</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
45 <li><a href="add-repository.html">add-repository</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
46 <li><a href="remove-repository.html">remove-repository</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
47 <li><a href="list-repositories.html">list-repositories</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
48 <li><a href="repository-url.html">repository-url</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
49 <li><a href="add-user.html">add-user</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
50 <li><a href="remove-user.html">remove-user</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
51 <li><a href="edit-user.html">edit-user</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
52 <li><a href="list-users.html">list-users</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
53 <li><a href="check-config.html">check-config</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
54 </ul>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
55 <li><a href="configuration.html">Configuration</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
56 <li><a href="encryption.html">Encryption</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
57 </ul>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
58 </div>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
59 <div class="nav">
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
60 <h3>dav-sync</h3>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
61 <ul>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
62 <li><a href="introduction.html">Introduction</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
63 <li><a href="sync-commands.html">Commands</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
64 <ul>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
65 <li><a href="pull.html">pull</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
66 <li><a href="push.html">push</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
67 <li><a href="archive.html">archive</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
68 <li><a href="restore.html">restore</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
69 <li><a href="list-conflicts.html">list-conflicts</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
70 <li><a href="resolve-conflicts.html">resolve-conflicts</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
71 <li><a href="delete-conflicts.html">delete-conflicts</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
72 <li><a href="trash-info.html">trash-info</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
73 <li><a href="empty-trash.html">empty-trash</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
74 <li><a href="list-versions.html">list-versions</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
75 <li><a href="add-tag.html">add-tag</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
76 <li><a href="remove-tag.html">remove-tag</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
77 <li><a href="set-tags.html">set-tags</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
78 <li><a href="list-tags.html">list-tags</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
79 <li><a href="add-directory.html">add-directory</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
80 <li><a href="list-directories.html">list-directories</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
81 <li><a href="sync-check-config.html">check-config</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
82 <li><a href="check-repositories.html">check-repositories</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
83 </ul>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
84 <li><a href="sync-configuration.html">Configuration</a></li>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
85 </ul>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
86 </div>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
87 </div>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
88
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
89 <!-- begin content -->
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
90 <div class="content">
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
91 <div id="header">
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
92 <h1 class="title">dav edit</h1>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
93 </div>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
94 <p><strong><code>dav edit [-pc] [-k &lt;key&gt;] [-V &lt;version&gt;] &lt;url&gt;</code></strong></p>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
95 <p>Downloads a resources and opens an editor. If there is no resource at the specified location, it is attempted to create a fresh resource before opening the editor.</p>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
96 <p>The default editor <code>vi</code> can be changed with the <code>EDITOR</code> environment variable.</p>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
97 <p>This command transparently handles decryption and encryption. If you download and open a plain text file and request content encryption (either by config or by command line option) the file will be re-uploaded with content encryption. However, a present file will keep its (plain text) file name in any case.</p>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
98 <p><strong><code>-p</code></strong> disable file name encryption and decryption</p>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
99 <p><strong><code>-c</code></strong> enable file name and content encryption</p>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
100 <p><strong><code>-k &lt;key&gt;</code></strong> use the specified key for encryption. The key must be configured in the config.xml file</p>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
101 <p><strong><code>-V &lt;version&gt;</code></strong> downloads a specific version of the resource. Available versions can be listed with the <em>list-versions</em> command</p>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
102 </div>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
103 <!-- end content -->
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
104 </body>
d78619cc5a4d merges feature/dav-edit
Mike Becker <universe@uap-core.de>
parents:
diff changeset
105 </html>

mercurial