Coder Social home page Coder Social logo

Comments (10)

hholtmann avatar hholtmann commented on June 5, 2024 1

I did run into the same issue today and did a bit more in depth investigation.
I opened an issue here: sahlberg/libsmb2#63

from amsmb2.

amosavian avatar amosavian commented on June 5, 2024

What is your server?

Would you mind to set a breakpoint at Context.swift line 274 to see if this error is thrown by my library or this is thrown by libsmb2?

from amsmb2.

emilhornlund avatar emilhornlund commented on June 5, 2024

Nope the app executes as normal.

Just the basic file sharing toggle inside preferences for macOS high sierra

from amsmb2.

emilhornlund avatar emilhornlund commented on June 5, 2024

Dont know if it helps but in Context.swift at line 306
let cbResult = cbPtr.bindMemory(to: CBData.self, capacity: 1).pointee.result
returns -22

and the error is then thrown at the next line 307
try POSIXError.throwIfError(cbResult, description: error, default: defaultError)

from amsmb2.

amosavian avatar amosavian commented on June 5, 2024

Ok that means libsmb2 throws error. Please check error property which is error description.

from amsmb2.

emilhornlund avatar emilhornlund commented on June 5, 2024

If you mean the error property of SMB2Context its empty

from amsmb2.

amosavian avatar amosavian commented on June 5, 2024

Thus error is thrown by either this line or this line

Please record packets by Wireshark app if possible and then open an issue in sahlberg/libsmb2

from amsmb2.

emilhornlund avatar emilhornlund commented on June 5, 2024

Thank you for your help, I will investigate further.

from amsmb2.

amosavian avatar amosavian commented on June 5, 2024

@emilhornlund @hholtmann Unfortunately Sahlberg's fix is not ready yet, and I think it would not be ready until next weekend or more. I restored my own implementation which predates libsmb2's one. It has no issue as it uses read/write instead of ioctl.

I will switch back to libsmb2's when it becomes ready and stable.

from amsmb2.

MartinP7r avatar MartinP7r commented on June 5, 2024

Seems like he has merged the fix a couple of months later: sahlberg/libsmb2#63 (comment)

from amsmb2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.