From: Mike Garrison Date: Thu, 1 Dec 2005 04:03:30 +0000 (+0000) Subject: STABLE14-files-per-subdir-math-error-20051130 X-Git-Tag: openafs-stable-1_4_1-rc2~7 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=fedfedcdfa01c33c7b219a4b8fc573b246be5032;p=packages%2Fo%2Fopenafs.git STABLE14-files-per-subdir-math-error-20051130 FIXES 23811 use a bitshift instead of xor(!) (cherry picked from commit 9c3c2428250a8fd78af66fe8d5d6c467e8599b1d) --- diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 38a0dd5c5..82b823f17 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -1477,7 +1477,7 @@ mainproc(struct cmd_syndesc *as, char *arock) if (as->parms[25].items) { /* -files_per_subdir */ int res = atoi(as->parms[25].items->data); - if (res < 10 || res > 2 ^ 30) { + if (res < 10 || res > (1 << 30)) { printf ("afsd:invalid number of files per subdir, \"%s\". Ignored\n", as->parms[25].items->data);