-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
port to udisks2 #31
base: master
Are you sure you want to change the base?
port to udisks2 #31
Conversation
There seems to be a bug with (at least) xscreensaver under Debian stretch. When using pam_usb for authentication only (no agent functionality like automatic screen unlock), it sometimes hangs during udisks_client_get_object_manager in device.c:41. I'm still trying to figure out what exactly goes wrong there, just FYI. |
@@ -1,4 +1,7 @@ | |||
/* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t; -*- */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luka-n, could you remove those? They are editor specific and I don't think they belong in the source file.
@luka-n, can you respond to comments in this PR so that we can get it merged and (possibly) even back to Ubuntu repository? |
Hey. I was looking into this and I noticed that another fork of this repo has most of these issues fixed. Plus it doesn't appear to have the problem with xscreensaver that @frederikmoellers mentioned above, which was an issue for me too, at least under Linux Mint 18. Perhaps a pull request from that fork's master branch would be a better idea. I could fix the problems @aluzzardi commented on above that are not fixed in that fork and make a new pull request. |
Please do - happy to review & merge |
In your PR there is still such problem. It works first time, but hangs a second time.
apparently after last line, "Searching for ..." should appear, but this never happens.
I couldn't find any refcounting bug in src/device.c. Making |
Published a small improvement iamsivil#4 , but it doesn't help the bug described above.
Sorry for hijacking this thread. I'm done now. |
Ah yes. Sorry, I noticed that bug was still there some time after writing that and forgot to mention it I guess. |
The workaround works apparently becasue spawned |
Ah right, that makes sense. I had thought the bug was external to pam_usb. If it is a udisks issue, then I'm wondering if it's fixed in more recent versions. I'm running udisks 2.1.8 (a little dated) on Debian 9. I'll try testing with a more recent version and see if I can confirm this. By the way, have you given any thought to using an alternative to udisks2 (re: #36)? I'm now also sorry for hijacking this thread.. Should we continue this elsewhere..? |
re #18