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

Diff for /src/usr.bin/rdistd/filesys-os.c between version 1.12 and 1.13

version 1.12, 2015/01/16 06:40:11 version 1.13, 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 <stdlib.h>
   #include <string.h>
   
 #include "defs.h"  #include "server.h"
   
 /*  /*
  * OS specific file system routines   * OS specific file system routines
Line 84 
Line 86 
         if (strcmp(mnt->f_fstypename, "nfs") == 0) {          if (strcmp(mnt->f_fstypename, "nfs") == 0) {
                 strlcpy(remote_dev, mnt->f_mntfromname, sizeof(remote_dev));                  strlcpy(remote_dev, mnt->f_mntfromname, sizeof(remote_dev));
                 mntstruct.me_path = remote_dev;                  mntstruct.me_path = remote_dev;
                 mntstruct.me_type = METYPE_NFS;                  mntstruct.me_flags |= MEFLAG_NFS;
         } else {          } else
                 mntstruct.me_path = mnt->f_mntonname;                  mntstruct.me_path = mnt->f_mntonname;
                 mntstruct.me_type = METYPE_OTHER;  
         }  
   
         mnt++;          mnt++;
         entries_left--;          entries_left--;
Line 116 
Line 116 
   
         new = xmalloc(sizeof *new);          new = xmalloc(sizeof *new);
         new->me_path = xstrdup(old->me_path);          new->me_path = xstrdup(old->me_path);
         new->me_type = xstrdup(old->me_type);  
         new->me_flags = old->me_flags;          new->me_flags = old->me_flags;
   
         return (new);          return (new);

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13