[users@httpd] Can i have relative path for apr_file_open in UNIX as done on WINDOWS?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 
I have written a module which calls apr_file_open in which i have used a relative path
e.g
apr_file_open(&thefile, "logs/abc.log",APR_READ,APR_OS_DEFAULT, x_pool);
 
This seems to be working on Windows platform where it considers <ApacheInstallationPath>\logs\abc.log
But it does not get this relative path on LINUX.
 
Why so?
 
Same is the issue with fopen() system call.  I am able to open files with relative path in this module on Windows but not on Linux.
 
Is there any setting by which Apache Installation Dir is known by Windows but same setting not on Linux? Pls lemme know.
 
Thanks & Regards,
Lekha Menon

http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netadmin@xxxxxxxxx and delete this mail.
_____________________________________________________________________

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux