[CDMAKE]: Remove potential trailing dir-separator characters at the end of the directory, in case e.g. we build up something like: "bootcd\\somefile.ext" in the boot/livecd.lst files (--> I want a directory "bootcd" and a file "somefile.ext", instead of the directory "bootcd\", otherwise the ISO becomes broken. Notice that when the path is "bootcd\somefile.ext the existing code worked ok. That's why I want to strip the remaining backslashes).

svn path=/trunk/; revision=66050
This commit is contained in:
Hermès Bélusca-Maïto 2015-01-18 13:11:35 +00:00
parent 147616c9fc
commit feb9cd80e4

View file

@ -107,6 +107,11 @@ void normalize_dirname(char *filename)
}
}
filename[tgt] = 0;
while (tgt && (filename[--tgt] == DIR_SEPARATOR_CHAR))
{
filename[tgt] = 0;
}
}
struct target_dir_entry *