EldoS | Feel safer!

Software components for data protection, secure storage and transfer

reading SolFS links

Posted: 03/03/2014 21:59:41
by Jeremy Spiegel (Standard support level)
Joined: 01/29/2014
Posts: 30

I'm see SolFS fail to read from the destination of a symbolic link. Is this expected? My code is something like:
        SolFSStorage storage;
        SolFSStream(&storage, "/to", "w").Write("abcd", 4);
        storage.Link("/from", "/to");
        char data[5];
        SolFSStream(&storage, "/from", "r").Read(data, 4);
        data[4] = 0;
        std::cout << data << std::endl;

The creation of the second SolFSStream on "/from" is failing with error -5 "File or directory already exists".

I am seeing that SolFSStorage::GetLinkDestination works though (it returns "/to"). Is reading from a symbolic link like this supposed to work? Thanks.
Posted: 03/04/2014 01:00:45
by Alexander Plas (Team)


Thank you for report. There is incomplete handling of symlinks in C++ stream class. I'll prepare an update for you, just let me know which edition (App or OS) you use. I suppose you use App edition, just have to ensure.
Posted: 03/04/2014 01:18:12
by Jeremy Spiegel (Standard support level)
Joined: 01/29/2014
Posts: 30

Yes, I'm using SolFS application edition on the mac currently.
Posted: 03/05/2014 02:24:11
by Alexander Plas (Team)

I move this topic to HelpDesk in order to provide there an update.



Topic viewed 4042 times

Number of guests: 2, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!