rx-edquot-20080130
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 31 Jan 2008 00:25:59 +0000 (00:25 +0000)
committerJeffrey 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

index fde2618..eb8167c 100644 (file)
@@ -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;