Hacking samba - how to get a directory from struct fd_handle?

Loop searching for "/", until it returns NULL Then your directory is from fsp_name to the pointer it returned the last time.

Loop searching for "/", until it returns NULL. Then your directory is from fsp_name to the pointer it returned the last time.

Fsp_name doesn't contain full path, only file name :( – Yossarian Mar 23 '09 at 23:35.

OK, so - solution: files_struct contains 'conn' field, which has 'char * origpath' - which contains current file's directory.

Then your directory is from fsp_name to the pointer it returned the last time.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions