From fedfedcdfa01c33c7b219a4b8fc573b246be5032 Mon Sep 17 00:00:00 2001 From: Mike Garrison Date: Thu, 1 Dec 2005 04:03:30 +0000 Subject: [PATCH] STABLE14-files-per-subdir-math-error-20051130 FIXES 23811 use a bitshift instead of xor(!) (cherry picked from commit 9c3c2428250a8fd78af66fe8d5d6c467e8599b1d) --- src/afsd/afsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5