Skip to content
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

Python 3 for python-afs #5

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

quentinmit
Copy link

I forward-ported the changes from Scripts on top of your forked copy of pyafs.

dehnert and others added 10 commits July 26, 2020 23:24
A group's membership is PTEntry.members, not PTEntry.users

Signed-off-by: Alex Dehnert <[email protected]>
If available, we want to build against the _pic variant of the libafsauthent
library. On Fedora, that's in lib64, not lib, so we need to pick it up there
too.

Signed-off-by: Alex Dehnert <[email protected]>
Fixes
warning: afs/_pts.pyx:115:8: Unreachable code
warning: afs/_pts.pyx:130:8: Unreachable code

Signed-off-by: Anders Kaseorg <[email protected]>
Fixes
warning: afs/_util.pyx:15:5: Function 'pioctl_read' previously declared as 'private'
warning: afs/_util.pyx:29:5: Function 'pioctl_write' previously declared as 'private'

Signed-off-by: Anders Kaseorg <[email protected]>
Previously, PTS.__cinit__ would leave sc uninitialized when passed an
invalid negative sec argument.

Fixes
afs/_pts.c: In function ‘__pyx_pf_3afs_4_pts_3PTS___cinit__’:
afs/_pts.c:2999:56: warning: ‘__pyx_v_sc’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     (__pyx_v_serverconns[__pyx_v_i]) = rx_NewConnection((__pyx_v_info.hostAddr[__pyx_v_i]).sin_addr.s_addr, (__pyx_v_info.hostAddr[__pyx_v_i]).sin_port, PRSRV, __pyx_v_sc, __pyx_t_9);
                                                        ^

Signed-off-by: Anders Kaseorg <[email protected]>
@quentinmit
Copy link
Author

As a warning/update: This will need some massaging to the build process to build as part of a Debian package. Debian's AFS libraries link against Heimdal, so you need to get both Heimdal hcrypto and roken and MIT krb5 to link at the same time. I managed to do it with a horrible hack in this branch but I think you might want to do something saner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants