]> code.citadel.org Git - citadel.git/commitdiff
* oops
authorArt Cancro <ajc@citadel.org>
Mon, 28 Feb 2000 05:41:50 +0000 (05:41 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 28 Feb 2000 05:41:50 +0000 (05:41 +0000)
citadel/ignet.c

index cdc1cd58ea8f19ac1a0589b9cc13fc7f1d63893d..bc4a09fd2458b02cce2bd0dc8c51da4a8bcd896e 100644 (file)
  */
 
 int is_ignet(char *node) {
+       char filename[256];
 
-       return 0;               /* FIXME */
+       /* First, check to see if the specified node is a neighbor */
+       sprintf(filename, "./network/systems/%s", node);
+       if (!access(filename, F_OK)) return(1);
+
+       /* If not, see if it's a non-neighbor node */
+       /* FIXME add this */
+
+       /* Nope */
+       return 0;
 
 }