ef98cc65cd9626157087f5ad3dd6eac5012c50d8
galt
  Thu Jan 24 18:13:10 2013 -0800
Add ability to tolerate paths in .2bit filename with gfServer. Paths are removed leaving only the filename. Clients are on other machines and therefore cannnot use them in general.
diff --git src/lib/common.c src/lib/common.c
index b0dd20f..d06f736 100644
--- src/lib/common.c
+++ src/lib/common.c
@@ -2634,30 +2634,40 @@
 char *e = strchr(s, c);
 if (e == NULL) return s;
 *e++ = 0;
 return e;
 }
 
 char *chopPrefix(char *s)
 /* This will replace the first '.' in a string with
  * 0, and return the character after this.  If there
  * is no '.' in the string this will just return the
  * unchanged s passed in. */
 {
 return chopPrefixAt(s, '.');
 }
 
+char *getFileNameOnly(char *path)
+/* Returns pointer to file name part of path beyond last slash / in the path.  Do not free. */
+{
+char *fileNameOnly = strrchr(path, '/');
+if (fileNameOnly)
+    ++fileNameOnly;
+else
+    fileNameOnly = path;
+return fileNameOnly;
+}
 
 
 boolean carefulCloseWarn(FILE **pFile)
 /* Close file if open and null out handle to it.
  * Return FALSE and print a warning message if there
  * is a problem.*/
 {
 FILE *f;
 boolean ok = TRUE;
 if ((pFile != NULL) && ((f = *pFile) != NULL))
     {
     if (f != stdin && f != stdout)
         {
         if (fclose(f) != 0)
 	    {