<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - System path on Unix starting with double-slashes converted to single slash"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=107967">107967</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>System path on Unix starting with double-slashes converted to single slash
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>Inherited From OOo
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>chris.sherlock79@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>It appears that in the OSL code that we do some sanity checking for Unix system
paths and convert double slashes (//) to single slash. However, if a system
path starts with a double-slash then starting with double-slashes we are still
converting this to a single slash.
That's unfortunately not valid. POSIX states the following:
"If a pathname begins with two successive <slash> characters, the first
component following the leading <slash> characters may be interpreted in an
implementation-defined manner, although more than two leading <slash>
characters shall be treated as a single <slash> character."
<a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13">http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13</a>
In other words, the following path...
//path/to/file.txt
it becomes:
//path/to/file.txt
However, the following path...
///path/to/file.txt
this becomes:
/path/to/file.txt</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>