Adds a warning message if permissions not sufficient.
This commit is contained in:
parent
c11b167f62
commit
cabc5a1561
|
@ -95,6 +95,7 @@ BOOL32 WINAPI SetFileAttributes32A(LPCSTR lpFileName, DWORD attributes)
|
||||||
lpFileName,attributes);
|
lpFileName,attributes);
|
||||||
if (-1==chmod(full_name.long_name,buf.st_mode))
|
if (-1==chmod(full_name.long_name,buf.st_mode))
|
||||||
{
|
{
|
||||||
|
MSG("Wine ERROR: Couldn't set file attributes for existing file \"%s\". Check permissions !\n", full_name.long_name);
|
||||||
SetLastError(ErrnoToLastError(errno));
|
SetLastError(ErrnoToLastError(errno));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue