Problem write-access permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hallo Winefriends!

I have a problem with write-access permissions of files under wine.
see you:

admin@max:~/.wine.test1/fake_windows$ wine foo.exe
...
trace:file:CreateFileW L"C:\\Windows\\win.ini" GENERIC_READ
FILE_SHARE_READ  cre
ation 3 attributes 0x80
trace:file:RtlDosPathNameToNtPathName_U
(L"C:\\Windows\\win.ini",0x4068f598,(nil),(nil))
trace:file:RtlGetFullPathName_U (L"C:\\Windows\\win.ini" 520 0x4068f300
(nil))
trace:ntdll:NtCreateFile handle=0x4068f58c access=80000000
name=L"\\??\\C:\\Wind
ows\\win.ini" objattr=00000040 root=(nil) sec=(nil) io=0x4068f590
alloc_size=(nil)
attr=00000080 sharing=00000001 disp=1 options=00000050 ea=(nil).0x00000000
warn:file:wine_nt_to_unix_file_name L"win.ini" not found in
/home/admin/.wine.test1/dosdevices/c:/Windows
warn:ntdll:NtCreateFile L"\\??\\C:\\Windows\\win.ini" not found (c0000034)
warn:file:CreateFileW Unable to create file L"C:\\Windows\\win.ini"
(status c0000034)
trace:file:CreateFileW returning 0xffffffff
trace:file:CreateFileW L"C:\\Windows\\win.ini" GENERIC_READ
FILE_SHARE_READ  creation 3 attributes 0x80
trace:file:RtlDosPathNameToNtPathName_U
(L"C:\\Windows\\win.ini",0x4068f598,(nil),(nil))
...

My questions:

- GENERIC_READ == readonly  correct??
- access=80000000 == readonly correct??

- Why is CreateFileW called, although readonly?

- Why again called CreateFileW, although previous call attempt fail?

- Why directory readonly?
  user "admin" is Owner all directories:


$ ls -la /home/admin/.wine.test1/dosdevices/c:/Windows
total 2946
drwxr-xr-x  20 admin admin    1024 Dec 31 09:53 .

- Can anywhere add a humanreadable warning to NtCreateFile()? Ex:
   "Warning: cannot create file %s, insufficient rights
(%o,%s)\n",unix_file,right_octal,unix_dir_owner

- existing a FAQ - Why to diag FileAccess?

regards Heiko
Launoc




_______________________________________________
wine-users mailing list
wine-users@xxxxxxxxxx
http://www.winehq.org/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux