]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-files-per-subdir-math-error-20051130
authorMike Garrison <mcgarr@umich.edu>
Thu, 1 Dec 2005 04:03:30 +0000 (04:03 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 1 Dec 2005 04:03:30 +0000 (04:03 +0000)
FIXES 23811

use a bitshift instead of xor(!)

(cherry picked from commit 9c3c2428250a8fd78af66fe8d5d6c467e8599b1d)

src/afsd/afsd.c

index 38a0dd5c50f30816822a79e961dbd3b306030787..82b823f17d22b12a7cb2e84e6b7689d6b021b494 100644 (file)
@@ -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);