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

Diff for /src/usr.bin/cvs/repository.c between version 1.9 and 1.10

version 1.9, 2007/01/25 18:56:33 version 1.10, 2007/02/07 23:47:56
Line 119 
Line 119 
                 /*                  /*
                  * nfs and afs will show d_type as DT_UNKNOWN                   * nfs and afs will show d_type as DT_UNKNOWN
                  * for files and/or directories so when we encounter                   * for files and/or directories so when we encounter
                  * this we call stat() on the path to be sure.                   * this we call lstat() on the path to be sure.
                  */                   */
                 if (dp->d_type == DT_UNKNOWN) {                  if (dp->d_type == DT_UNKNOWN) {
                         if (stat(rpath, &st) == -1)                          if (lstat(rpath, &st) == -1)
                                 fatal("'%s': %s", rpath, strerror(errno));                                  fatal("'%s': %s", rpath, strerror(errno));
   
                         switch (st.st_mode & S_IFMT) {                          switch (st.st_mode & S_IFMT) {

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10