From 9c3c2428250a8fd78af66fe8d5d6c467e8599b1d Mon Sep 17 00:00:00 2001 From: Mike Garrison Date: Thu, 1 Dec 2005 04:02:23 +0000 Subject: [PATCH] files-per-subdir-math-error-20051130 FIXES 23811 use a bitshift instead of xor(!) --- 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 a258aa15e..ab85fffa3 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -1483,7 +1483,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