Bug 137485 - Double load with symlinks - missing 'realpath'
Summary: Double load with symlinks - missing 'realpath'
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-14 18:14 UTC by Michael Meeks
Modified: 2022-02-21 03:34 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Meeks 2020-10-14 18:14:04 UTC
I run:

soffice ~/foo.odp

my home is symlinked thus:

/home/michael -> ../crypt-home/michael

If then run:

strace -f -e file -o /tmp/slog loffice ~/foo.odp  /crypt-home/michael/foo.odp 

It can be seen that I load the same file twice - which is a horror - and leads to data-loss =)

Did someone try to optimize the 'realpath()' code or something ? interestingly the second load seems to walk back the elements of the path following symlinks as I would expect to try to detect duplicates.

I believe this is a regression; also data-loss ... on Linux.
Comment 1 Aleksandra 2021-07-23 14:56:37 UTC
Hello. 
Please update to the latest version and confirm the bag. 
Thank you.
Comment 2 QA Administrators 2022-01-21 03:37:50 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2022-02-21 03:34:10 UTC
Dear Michael Meeks,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp