https://bugs.freedesktop.org/show_bug.cgi?id=43095

Tor Lillqvist <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Tor Lillqvist <[email protected]> 2011-12-03 03:08:22 PST 
---
I suggest we instead try to see why the code wants to check file access before
attempting to open a file (if that is what it does), and if possible just try
to get rid of such checks.

I very much doubt even access() can get it right in all circumstances. For
instance, surely mounting volumes from Windows  servers on Unix clients is much
more common than using OpenAFS or Linux ACLs. Does acess() work correctly if
the file has some funky ACL on the SMB side?

Isn't it in general wrong to try to check if something is possible before doing
it? See http://en.wikipedia.org/wiki/Time-of-check-to-time-of-use . Instead,
just try to do what you want to do (like open a file for reading or writing),
and if it doesn't succeed, fail gracefully at that point.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to