Re: RE: RE: RE: [openssl.org #1520] request for checking if -in and -out files are same

2007-04-25 Thread Victor B. Wagner
On 2007.04.25 at 01:55:23 -0700, David Schwartz wrote: > > > For example, if we are running under Unix-style kernel, we can make > > stat calls on both files. And if both st_dev and st_ino fields of > > the resulting stat structures are same, we should consider files same. > > Why? Suppose the f

RE: RE: RE: [openssl.org #1520] request for checking if -in and -out files are same

2007-04-25 Thread David Schwartz
> For example, if we are running under Unix-style kernel, we can make > stat calls on both files. And if both st_dev and st_ino fields of > the resulting stat structures are same, we should consider files same. Why? Suppose the filesystem internally uses inodes larger than the st_ino field. Is it

Re: RE: RE: [openssl.org #1520] request for checking if -in and -out files are same

2007-04-25 Thread Victor B. Wagner
On 2007.04.20 at 11:57:35 -0700, David Schwartz wrote: > > > On 2007.04.19 at 11:59:39 -0700, David Schwartz wrote: > > > > > This is not nearly as simple as you might think. Are 'foo.txt' > > and 'Foo.txt' the same file? What about 'directory/file.txt' and > > 'symlink/file.txt'? > > > > > > I d