Shenghan Gao <sgao9 at stevens.edu> wrote: > I know I could compare names of two paths. But simply compare the name > couldn't prevent this if there is a symbolic link. Correct. You would need to find another way of testing whether or not two given filenames reference the exact same file. Take a look at stat(2). -Jan