convert_abs_rel() fixups
authorMichal Soltys <soltys@ziu.info>
Fri, 7 Oct 2011 20:23:49 +0000 (22:23 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 10 Oct 2011 09:54:25 +0000 (11:54 +0200)
commitc1609dd497bb8f8f083a258ff2f7702385eb940b
tree19dff97a58f408624098fcc442f99ddee8357540
parent88b3e00515804f7e6906590ab02534d1fe4ec91f
convert_abs_rel() fixups

- IFS was not preserved, and modified value could leak to outside functions

- the '.' relative path should be returned for arguments such as /x/y/z
  /x/y - but not for $1 == $2 ones

- $1 == $2 is self-looping link, so it returns final component of its
  name

Signed-off-by: Michal Soltys <soltys@ziu.info>
dracut-functions