Adds a warning message if permissions not sufficient.

This commit is contained in:
Andreas Mohr 1999-02-13 12:38:51 +00:00 committed by Alexandre Julliard
parent c11b167f62
commit cabc5a1561
1 changed files with 1 additions and 0 deletions

View File

@ -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;
} }