view dgl/dgl-common.c.patch @ 20:c05050f78d81

Make arogue5 scores appear on the player pages too. This could probably be done in a more structured way.
author John "Elwin" Edwards <elwin@sdf.org>
date Mon, 17 Sep 2012 11:41:11 -0700
parents 9945b472aac2
children
line wrap: on
line source

504c504
<   int fd, len, n, is_nhext, pid;
---
>   int fd, len, n, is_nhext, is_node, pid;
538a539
>       is_node = strchr(pdirent->d_name, ':') && !strncmp(strchr(pdirent->d_name, ':'), ":node:", 6);
550c551
<       if (fd >= 0 && (is_nhext || fcntl (fd, F_SETLK, &fl) == -1))
---
>       if (fd >= 0 && (is_nhext || is_node || fcntl (fd, F_SETLK, &fl) == -1))
567a569,576
>               if (is_node) {
>                   replacestr = strchr(replacestr, ':');
>                   if (!replacestr) {
> 		      debug_write("inprogress-filename does not have ':', 1a");
> 		      graceful_exit(145);
> 	          }
>                   replacestr++;
>               }
589a599,602
>               if (is_node) {
>                   replacestr++;
>                   replacestr = strchr(replacestr, ':');
>               }