Re: Re: pgsql: add EPERM to the list of return codes to expect from opening
От | Magnus Hagander |
---|---|
Тема | Re: Re: pgsql: add EPERM to the list of return codes to expect from opening |
Дата | |
Msg-id | 9837222c1003010537r79589e25kcb7edb16cabb66e4@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: pgsql: add EPERM to the list of return codes to expect from opening (Greg Stark <gsstark@mit.edu>) |
Ответы |
Re: Re: pgsql: add EPERM to the list of return codes to expect from opening
|
Список | pgsql-hackers |
You might want to look at _dosmaperror() in src/port/win32error.c - it contains the different win32 error ccodes that we match to EACCESS. I don't see us mapping *anything* to EPERM. Actually, I think that may be your problem - you are testing against EPERM instead of EACCESS. On my linux manpage, EPERM isn't even a valid return code from open(). //Magnus 2010/3/1 Greg Stark <gsstark@mit.edu>: > This isn't working. The Windows ports are all saying "permission > denied" but apparently that's not because errno is set to EPERM. > Anyone know how to detect "permission denied" errors from open() on > windows? > > On Mon, Mar 1, 2010 at 12:04 AM, Greg Stark <stark@postgresql.org> wrote: >> Log Message: >> ----------- >> add EPERM to the list of return codes to expect from opening directories based on Vista results >> >> Modified Files: >> -------------- >> pgsql/src/port: >> copydir.c (r1.34 -> r1.35) >> (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/port/copydir.c?r1=1.34&r2=1.35) >> >> -- >> Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pgsql-committers >> > > > > -- > greg > > -- > Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-hackers > -- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/
В списке pgsql-hackers по дате отправления: