need to use strncmp for relative path check:
if (!strncmp (s, "/./", 3) || !strncmp (s, "/../", 4))
{
++s;
}
On Wed, Jun 21, 2017 at 8:53 AM, Zartaj Majeed wrote:
> This update to the patch adds the following:
>
> 1. Check socket file path length less
This update to the patch adds the following:
1. Check socket file path length less than sizeof sun_path array in
struct sockaddr_un
2. Allow relative socket file paths starting with "./" or "../". This
means the pseudo filename
opened in bash is of the form "/dev/unixstream/./xyz.sock" or
"/dev/un
Attaching the patch usock.diff.txt
On Mon, Jun 19, 2017 at 11:36 PM, Eduardo A. Bustamante López
wrote:
> On Mon, Jun 19, 2017 at 07:30:42PM -0400, Z wrote:
>> This patch adds support for Unix domain sockets. A filename of the form
>> /dev/unixstream/path used in a redirection makes bash attemp