Re: [BUGS] More SSL questions..
От
Tom Lane
Тема
Re: [BUGS] More SSL questions..
Дата
Msg-id
9259.1105223199@sss.pgh.pa.us
Ответ на
Re: [BUGS] More SSL questions.. (Andrew Dunstan)
Список
Дерево обсуждения
Re: [BUGS] More SSL questions.. "Dave Page" <dpage@vale-housing.co.uk>
Re: [BUGS] More SSL questions.. "T.J." <tjtoocool@phreaker.net>
Re: [BUGS] More SSL questions.. Tom Lane <tgl@sss.pgh.pa.us>
Re: [BUGS] More SSL questions.. Andrew Dunstan <andrew@dunslane.net>
Re: [BUGS] More SSL questions.. Tom Lane <tgl@sss.pgh.pa.us>
Andrew Dunstan writes: > Tom Lane wrote: >> Doh --- isn't fstat's st_ino a meaningless value on Windows? > Pretty much, yes. The minimum change to fix it would be to ifdef out the fstat call and ino/dev test on WIN32. However, I'm wondering why the code does it that way in the first place. The proper way to enforce the security check, if we're worried about race conditions, is to apply the file ownership/permissions test to the fstat result. It's not clear to me that the stat call before fopen is worth anything at all. Thoughts? regards, tom lane
В списке pgsql-hackers-win32 по дате отправления