Drop drive letter from path to razor root when RAZOR_ROOT set.
authorJ. Ali Harlow <ali@juiblex.co.uk>
Sat, 23 Aug 2014 15:07:09 +0000 (16:07 +0100)
committerJ. Ali Harlow <ali@juiblex.co.uk>
Sat, 23 Aug 2014 15:07:09 +0000 (16:07 +0100)
commit5bbdaf077007db6714e8476d58d5ed507e03470c
treeea5c618a6ee0a3969e09429104d31e8624fce953
parent236cfc8ecc5c66288e41bf9b72051a3b18326e1c
Drop drive letter from path to razor root when RAZOR_ROOT set.

If the RAZOR_ROOT environment variable was set to eg., /root then on
Microsoft Windows we were trying to use paths such as /rootC:/Programs
which is obviously wrong. Instead we should drop the drive letter
giving paths of the form /root/Programs. Note that the drive letter is
_not_ migrated to C:/root/Programs: If a root of C:/root was desired
then RAZOR_ROOT would have been set to C:/root.
librazor/atomic-ktm.c
librazor/atomic-none.c
librazor/razor-internal.h
librazor/razor.h
librazor/root.c
librazor/util.c