278 |
|
sigdie(SIGXFSZ, "File size exceeded"); |
279 |
|
#endif |
280 |
|
/* protect holodeck file */ |
281 |
< |
orig_mode = resfmode(hdlist[0]->fd, ncprocs>0&force>=0 ? 0 : 0444); |
281 |
> |
orig_mode = resfmode(hdlist[0]->fd, (ncprocs>0) & (force>=0) ? 0 : 0444); |
282 |
|
return; |
283 |
|
memerr: |
284 |
|
error(SYSTEM, "out of memory in initrholo"); |
483 |
|
int n; |
484 |
|
int32 nextloc; |
485 |
|
|
486 |
< |
if (ncprocs > 0 & force >= 0) |
486 |
> |
if ((ncprocs > 0) & (force >= 0)) |
487 |
|
fp = fopen(hdkfile, "r+"); |
488 |
|
else |
489 |
|
fp = NULL; |
562 |
|
{ |
563 |
|
char *tp, *dp; |
564 |
|
|
565 |
< |
for (tp = NULL, dp = rn; *rn = *fn++; rn++) |
565 |
> |
for (tp = NULL, dp = rn; (*rn = *fn++); rn++) { |
566 |
|
if (*rn == '/') |
567 |
|
dp = rn; |
568 |
|
else if (*rn == '.') |
569 |
|
tp = rn; |
570 |
+ |
} |
571 |
|
if (tp != NULL && tp > dp) |
572 |
|
*tp = '\0'; |
573 |
|
} |
610 |
|
if (hdlist[0] != NULL) { /* close holodeck */ |
611 |
|
if (nprocs > 0) |
612 |
|
status = done_rtrace(); /* calls hdsync() */ |
613 |
< |
if (ncprocs > 0 & force >= 0 && vdef(REPORT)) { |
613 |
> |
if ((ncprocs > 0) & (force >= 0) && vdef(REPORT)) { |
614 |
|
off_t fsiz, fuse; |
615 |
|
fsiz = hdfilen(hdlist[0]->fd); |
616 |
|
fuse = hdfiluse(hdlist[0]->fd, 1); |