Author: hbelusca Date: Sun Jan 18 13:11:35 2015 New Revision: 66050
URL: http://svn.reactos.org/svn/reactos?rev=66050&view=rev Log: [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).
Modified: trunk/reactos/tools/cdmake/dirhash.c
Modified: trunk/reactos/tools/cdmake/dirhash.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/cdmake/dirhash.c?rev=... ============================================================================== --- trunk/reactos/tools/cdmake/dirhash.c [iso-8859-1] (original) +++ trunk/reactos/tools/cdmake/dirhash.c [iso-8859-1] Sun Jan 18 13:11:35 2015 @@ -107,6 +107,11 @@ } } filename[tgt] = 0; + + while (tgt && (filename[--tgt] == DIR_SEPARATOR_CHAR)) + { + filename[tgt] = 0; + } }
struct target_dir_entry *