On Mon, Feb 04, 2002 at 01:36:44PM +0300, Eugene L. Vorokov wrote:
+> I faced that problem once. I used an ugly hack: simulation of __getcwd()
+> syscall. You need to allocate user memory via mmap() with MAP_ANON flag,
+> pass it to __getcwd(), then copy string to kernel using copyin() or like
+> that, and munmap() the memory. This is neither proper nor efficient way
+> to do that, but it's easy and it works. Note that in case of ./ or
+> several ../ in the file name you may need to do some extra processing
+> to get "correct" full path.
+>  
Working! thX a lot! :)

-- 
Paweł Jakub Dawidek
Network Administrator.
Am I Evil? Yes, I Am.

Attachment: msg31389/pgp00000.pgp
Description: PGP signature

Reply via email to