fixed canonicalize_pathname() breakage: fixed str_move() function (memmove semantics...
commit7d0fa9afced7e65468499757607fb3b21a7bf378
authorPatrick Winnertz <winnie@debian.org>
Tue, 10 Feb 2009 12:54:23 +0000 (10 13:54 +0100)
committerPatrick Winnertz <winnie@debian.org>
Tue, 10 Feb 2009 13:02:20 +0000 (10 14:02 +0100)
tree50f9418441ecd46cedd740e411ac52d819e84cf8
parentf237a14635ca6f26c083f591391e59782c7f8fb9
fixed canonicalize_pathname() breakage: fixed str_move() function (memmove semantics) again
and add shell_(un)escape again

This patch reintroduces fix firstly appeared in (and recently broken by mhl revert)
>   commit e48cb7c89ff3e54de70130a3de2136a9902a023d
>   Author: Sergei Trofimovich <st@anti-virus.by>
>   Date:   Fri Jan 30 09:31:28 2009 +0200
>
>        mhl: added mhl_strmove() function (memmove semantics)
...
>            Snippet of man strcpy:
>       DESCRIPTION
>               The  strcpy()  function copies the string pointed to by src, including the terminating
>               null byte ('\0'), to the buffer pointed to by dest.  ___The strings may not overlap___,
>               and the destination string dest must be  large enough to receive the copy.
>       We used strcpy to move data chunk in memory: "./foo" -> "foo", etc.
>
>       This patch introduces mhl_strmove and fixed canonicalize_pathname.

Conflicts:

src/util.h

Signed-off-by: Patrick Winnertz <winnie@debian.org>
src/util.c
src/util.h