To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=94791
                 Issue #|94791
                 Summary|com.sun.star.ucb.SimpleFileAccess method getDateTimeMo
                        |difed gives the datetime of a symlink and not of the t
                        |arget file
               Component|ucb
                 Version|OOo 2.0.4
                Platform|Unknown
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|mhu
             Reported by|rene





------- Additional comments from [EMAIL PROTECTED] Thu Oct  9 05:06:14 +0000 
2008 -------
[ forwarded from http://bugs.debian.org/429046 ]

--- snip ---
"I'm developing a macro in python, which lives in a Subversion working
copy. There is a symlink in ~/.openoffice.org2/user/Scripts/python that
has the real script as the target.

When I alter the script, OO does not notice unless I quit and reload it.

>From looking at /usr/lib/openoffice/program/pythonscript.py, it seems
that there is some logic that tries to reload a script if its file
modification date changes; in order to determine the modification date
of the script, com.sun.star.ucb.SimpleFileAcess.getDateTimeModified is
called.

I noticed today that changing the mtime of the script's symlink makes OO
reload the script. I used strace to confirm that getDateTimeModified is
trying to be too clever, and is calling lstat when it should just be
calling stat.
--- snip ---

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to