projects
/
invirt/packages/python-afs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10715f8
)
Fix error messages that are actually errno.
author
Edward Z. Yang
<edwardzyang@thewritingpot.com>
Tue, 12 May 2009 04:17:34 +0000
(
00:17
-0400)
committer
Edward Z. Yang
<edwardzyang@thewritingpot.com>
Tue, 12 May 2009 04:17:34 +0000
(
00:17
-0400)
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
afs/afs.pyx
patch
|
blob
|
history
diff --git
a/afs/afs.pyx
b/afs/afs.pyx
index
77456b4
..
29a2442
100644
(file)
--- a/
afs/afs.pyx
+++ b/
afs/afs.pyx
@@
-19,6
+19,10
@@
cdef extern int pioctl_read(char *dir, afs_int32 op, void *buffer, unsigned shor
blob.out_size = size
blob.out = buffer
code = pioctl(dir, op, &blob, follow)
+ # This might work with the rest of OpenAFS, but I'm not convinced
+ # the rest of it is consistent
+ if code == -1:
+ raise OSError(errno, strerror(errno))
pyafs_error(code)
return code