[PATCH] Shows an error about wrong permissions

Thiago Macieira thiago at macieira.org
Thu Nov 13 11:36:24 PST 2014


On Thursday 13 November 2014 21:12:03 Lubomir I. Ivanov wrote:
> 2014-11-13 1:27 GMT+02:00 Salvo Tomaselli <tiposchi at tiscali.it>:
> >> +     } else if (access(data->devname, R_OK | W_OK) != 0)
> > 
> > Hm. Now that I think of it. I don't know if this works on Windows…
> 
> access() is part of the Win32 C library, but it needs UTF-16 to work
> for non-ASCII paths (_waccess()).
> we already do this for a set of functions such as fopen(), rename()
> etc, so a new wrapper function subsurface_access() has to be added.
> 
> two patches are attached.
> (the second one is just some cleanup)
> 
> another solution would be to not use access().

Hi Lubomir

macos.c won't compile, there's an extra ( that isn't closed.

Sorry, I can't include the patch code inline because your email listed them as 
application/octet-stream...
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358



More information about the subsurface mailing list