What I am trying to do is something like this: For a file, say named 'config', I want to have 2 names for it ,say 'config' and 'donfig'. So when I do an 'ls' on that directory, I should be able to see 2 files 'config' and 'donfig'
$ ls config donfig $ I DO NOT have the liberty of using symlinks. Other changes in the open syscall to handle 'donfig' as a name will be done later. Rite now I just want the above mentioned directory listing. To achieve, I have hooked the getdents64 syscall. The algorithm for my getdents64 routine is as follows: 1) Call the original getdents64 2) Make a copy the dirent entry of 'config' and in that replace the name 'config' with 'donfig'; keeping other things the same. But as you might have guessed correctly, this does not work :(( If I do not change the name to 'donfig', I do see 2 entries for 'config'. But if change any character of the name, the entry is not seen in the output. Is there any checksum or anything similar involved? I am on Fedora Core 1, Kernel 2.4.22 -Shri -- ______________________________________________________________________ Pune GNU/Linux Users Group Mailing List: (plug-mail@plug.org.in) List Information: http://plug.org.in/mailing-list/listinfo/plug-mail Send 'help' to [EMAIL PROTECTED] for mailing instructions.