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 <[email protected]>: > 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 <[email protected]> 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 ([email protected]) >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pgsql-committers >> > > > > -- > greg > > -- > Sent via pgsql-hackers mailing list ([email protected]) > 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 by date:
Соглашаюсь с условиями обработки персональных данных