[BACK]Return to filesys.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rdistd

Diff for /src/usr.bin/rdistd/filesys.c between version 1.3 and 1.4

version 1.3, 1996/06/26 05:38:21 version 1.4, 1996/07/29 20:46:40
Line 119 
Line 119 
                          * Normally we want to change /dir1/dir2/file                           * Normally we want to change /dir1/dir2/file
                          * into "/dir1/dir2/."                           * into "/dir1/dir2/."
                          */                           */
                         if (p = (char *) strrchr(file, '/')) {                          if ((p = (char *) strrchr(file, '/'))) {
                                 *++p = '.';                                  if (strcmp(p, "/.") == 0) {
                                 *++p = CNULL;                                      *p = CNULL;
                                   } else {
                                       *++p = '.';
                                       *++p = CNULL;
                                   }
                         } else {                          } else {
                                 /*                                  /*
                                  * Couldn't find anything, so give up.                                   * Couldn't find anything, so give up.

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4