View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000502 | Far Manager | Viewer | public | 2008-03-19 21:42 | 2011-04-03 18:48 |
Reporter | alexmitin | Assigned To | DrKnS | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Fixed in Version | 3.0 | ||||
Summary | 0000502: apiCreateFile rights for the Viewer | ||||
Description | There is an access denied error when the user tries to view a file when he (the user account) has only the following permissions for the file: List Folder/Read Data The minimum set of rights to view the file should be the following: Reading: FILE_READ_DATA The following places should be updated: int Viewer::OpenFile(const wchar_t *Name,int warning) { ... HANDLE hView = apiCreateFile( strFileName, FILE_READ_DATA, //<== was GENERIC_READ, ShareMode, NULL, OPEN_EXISTING, Flags, NULL ); if (hView==INVALID_HANDLE_VALUE && Flags!=0) { hView = apiCreateFile( strFileName, FILE_READ_DATA, //<== was GENERIC_READ, ShareMode, NULL, OPEN_EXISTING, 0, NULL ); } ... } | ||||
Additional Information | FAR 1.80.0.452 | ||||
Tags | No tags attached. | ||||
Build | 1939 | ||||
|
Стоп. Сдается мне, что уже была смена FILE_READ_DATA <=> GENERIC_READ (здесь, на мантисе, речь шла...) |
|
На 453 под Vista/32 не вопроизводится - Far его открывает. |
|
See 0000504:0001389 in the 0000504 for the information how to set the initial permissions for the user account to test with. |
|
Можно и поменять. Я разницы не заметил (то что открывалось с GENERIC_READ, открывается и с FILE_READ_DATA), а запрашиваемые права меньше... |
Date Modified | Username | Field | Change |
---|---|---|---|
2008-03-19 21:42 | alexmitin | New Issue | |
2008-03-20 09:33 | vskirdin | Note Added: 0001381 | |
2008-03-20 14:18 | Denis | Note Added: 0001386 | |
2008-03-20 15:34 | alexmitin | Note Added: 0001390 | |
2008-11-21 11:07 | alexy | Status | new => assigned |
2008-11-21 11:07 | alexy | Assigned To | => vskirdin |
2010-05-02 22:50 | alexy | Assigned To | vskirdin => |
2010-05-02 22:50 | alexy | Status | assigned => new |
2011-03-31 16:23 | 2useven10 | Note Added: 0006652 | |
2011-03-31 19:25 | 2useven10 | Note Edited: 0006652 | |
2011-04-03 18:48 | DrKnS | Build | => 1939 |
2011-04-03 18:48 | DrKnS | Status | new => closed |
2011-04-03 18:48 | DrKnS | Assigned To | => DrKnS |
2011-04-03 18:48 | DrKnS | Resolution | open => fixed |
2011-04-03 18:48 | DrKnS | Fixed in Version | => 3.0 |