On Thu, 2003-02-27 at 13:40, Shai Bentin wrote: > I joined a development project where they use mainly windows. Some of their > build scripts, and in few places in their code they hardcoded references to a > Z: drive.
I see. Can you share with us the name of this fine outfit? I want to make sure I never to accidentally buy software or services from them by mistake... > > Is there a way to create such a situation in linux where referencing z: will > work ? (thus, I can't just create a partition/ directory z: because it would > be referenced as /z:/ which is not good). My best advice would be, save for a total re-write which seems very needed, to hijack the open() and other file related system calls with code that would replace z: in the requested paths with something sensible. The following lecture notes might be helpful and it contains a working example. Look at the "Having fun with the dynamic linker" slides and beyond: http://www.benyossef.com/presentations/dlink/ Please be aware though that doing one you want is not very simple since many glibc functions use _open() and friends internally rather then the exported symbols and these are not exported. This problem can be overcome by a one line patch to glibc but I'm pretty sure you wont need it for what you described. And don't hardcode paths, bog dammit! :-) Gilad. -- Gilad Ben-Yossef <[EMAIL PROTECTED]> http://benyossef.com " [EMAIL PROTECTED] root]# grep processors /var/log/dmesg Total of 64 processors activated (76359.40 BogoMIPS). " ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]