git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
421e063
)
files-per-subdir-math-error-20051130
author
Mike Garrison
<mcgarr@umich.edu>
Thu, 1 Dec 2005 04:02:23 +0000 (
04:02
+0000)
committer
Derrick Brashear
<shadow@dementia.org>
Thu, 1 Dec 2005 04:02:23 +0000 (
04:02
+0000)
FIXES 23811
use a bitshift instead of xor(!)
src/afsd/afsd.c
patch
|
blob
|
history
diff --git
a/src/afsd/afsd.c
b/src/afsd/afsd.c
index
a258aa1
..
ab85fff
100644
(file)
--- 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);