Skip to content

Conversation

@quentinmit
Copy link

@quentinmit quentinmit commented Dec 13, 2019

Paths are handled using Python 3's standard "surrogateescape" encoding. All other strings are handled as pure ASCII.

This also supports modern OpenAFS where some functions were split out into new libraries.

Finally, I included Anders's old commits to remove compiler warnings.

andersk and others added 7 commits July 19, 2013 18:16
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]>
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.

2 participants