[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.17 and 1.18

version 1.17, 2015/01/16 06:40:11 version 1.18, 2015/01/20 09:00:16
Line 31 
Line 31 
   
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/mount.h>  #include <sys/mount.h>
   #include <errno.h>
   #include <string.h>
   #include <unistd.h>
   
 #include "defs.h"  #include "server.h"
   
 /*  /*
  * This file contains functions dealing with getting info   * This file contains functions dealing with getting info
Line 230 
Line 233 
   
         mntinfo = mi;          mntinfo = mi;
         while ((mnt = getmountent()) != NULL) {          while ((mnt = getmountent()) != NULL) {
                 debugmsg(DM_MISC, "mountent = '%s' (%s)",                  debugmsg(DM_MISC, "mountent = '%s'", mnt->me_path);
                          mnt->me_path, mnt->me_type);  
   
                 /*                  /*
                  * Make sure we don't already have it for some reason                   * Make sure we don't already have it for some reason
Line 339 
Line 341 
 {  {
         mntent_t *mnt;          mntent_t *mnt;
   
         if ((mnt = (mntent_t *) getmntpt(path, statbuf, isvalid)) == NULL)          if ((mnt = getmntpt(path, statbuf, isvalid)) == NULL)
                 return(-1);                  return(-1);
   
         /*          if (mnt->me_flags & MEFLAG_NFS)
          * We treat "cachefs" just like NFS  
          */  
         if ((strcmp(mnt->me_type, METYPE_NFS) == 0) ||  
             (strcmp(mnt->me_type, "cachefs") == 0))  
                 return(1);                  return(1);
   
         return(0);          return(0);

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18