EldoS | Feel safer!

Software components for data protection, secure storage and transfer

reading SolFS links

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#28655
Posted: 03/03/2014 21:59:41
by Jeremy Spiegel (Standard support level)
Joined: 01/29/2014
Posts: 16

I'm see SolFS fail to read from the destination of a symbolic link. Is this expected? My code is something like:
Code
        SolFSStorage storage;
        storage.set_FileName("/tmp/solfs_test");
        storage.Open(somCreateAlways);
        
        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.
#28658
Posted: 03/04/2014 01:00:45
by Alexander Plas (EldoS Corp.)

Hello

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.
#28660
Posted: 03/04/2014 01:18:12
by Jeremy Spiegel (Standard support level)
Joined: 01/29/2014
Posts: 16

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

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

Reply

Statistics

Topic viewed 2134 times

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




|

Back to top

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

Got it!