git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9751c68
)
rx-edquot-20080130
author
Jeffrey Altman
<jaltman@secure-endpoints.com>
Thu, 31 Jan 2008 00:25:59 +0000 (
00:25
+0000)
committer
Jeffrey Altman
<jaltman@secure-endpoints.com>
Thu, 31 Jan 2008 00:25:59 +0000 (
00:25
+0000)
LICENSE MIT
Conditionalize error translation on the existence of EDQUOT not
on platform macros
src/rx/rx_misc.c
patch
|
blob
|
history
diff --git
a/src/rx/rx_misc.c
b/src/rx/rx_misc.c
index
fde2618
..
eb8167c
100644
(file)
--- a/
src/rx/rx_misc.c
+++ b/
src/rx/rx_misc.c
@@
-53,7
+53,7
@@
hton_syserr_conv(register afs_int32 code)
if (code == ENOSPC)
err = VDISKFULL;
-#if !defined(AFS_SUN5_ENV) && !defined(AFS_NT40_ENV)
+#ifdef EDQUOT
/* EDQUOT doesn't exist on solaris */
else if (code == EDQUOT)
err = VOVERQUOTA;
@@
-76,7
+76,7
@@
ntoh_syserr_conv(int code)
if (code == VDISKFULL)
err = ENOSPC;
else if (code == VOVERQUOTA)
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
+#ifndef EDQUOT
err = ENOSPC;
#else
err = EDQUOT;