From: Jeffrey Altman Date: Thu, 31 Jan 2008 00:27:40 +0000 (+0000) Subject: STABLE14-rx-edquot-20080130 X-Git-Tag: openafs-stable-1_4_7pre1~48 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ee4ac1bf3cb502bc30237bd3bae71b67d719cc86;p=packages%2Fo%2Fopenafs.git STABLE14-rx-edquot-20080130 LICENSE MIT Conditionalize error translation on the existence of EDQUOT not on platform macros (cherry picked from commit 9ce814aa99b6877843f38c7fdd8fde09cb2a743c) --- diff --git a/src/rx/rx_misc.c b/src/rx/rx_misc.c index 2dd3b045a..eb8167cd3 100644 --- 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) && !defined(AFS_DJGPP_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) || defined(AFS_DJGPP_ENV) +#ifndef EDQUOT err = ENOSPC; #else err = EDQUOT;