extlinux: handle cases of a single level of directories syslinux-4.00-pre39
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 28 Apr 2010 22:50:20 +0000 (15:50 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 28 Apr 2010 22:50:20 +0000 (15:50 -0700)
commit593ca98d8795f1c97c1424e2b8648c643a4c18f8
treee9c0fae288ec90b6a08b40ad61bc35cbf9ccc7f9
parent80889d3b8246678bafe6cbdd1abed969f669972f
extlinux: handle cases of a single level of directories

We had a boundary condition error where a single-level directory from
the global root (e.g. /boot) would be incorrectly truncated; fix that.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
extlinux/main.c