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

Diff for /src/usr.bin/showmount/showmount.c between version 1.18 and 1.19

version 1.18, 2015/08/20 22:32:42 version 1.19, 2015/11/17 15:01:28
Line 49 
Line 49 
 #include <string.h>  #include <string.h>
 #include <unistd.h>  #include <unistd.h>
 #include <vis.h>  #include <vis.h>
   #include <err.h>
   
 /* Constant defs */  /* Constant defs */
 #define ALL     1  #define ALL     1
Line 105 
Line 106 
         char *host;          char *host;
         int ch, clnt_sock;          int ch, clnt_sock;
   
           if (pledge("stdio rpath inet dns", NULL) == -1)
                   err(1, "pledge");
   
         while ((ch = getopt(argc, argv, "ade3")) != -1)          while ((ch = getopt(argc, argv, "ade3")) != -1)
                 switch (ch) {                  switch (ch) {
                 case 'a':                  case 'a':
Line 158 
Line 162 
         }          }
         timeout.tv_sec = 30;          timeout.tv_sec = 30;
         timeout.tv_usec = 0;          timeout.tv_usec = 0;
   
           if (pledge("stdio rpath", NULL) == -1)
                   err(1, "pledge");
   
         if (rpcs & DODUMP) {          if (rpcs & DODUMP) {
                 estat = clnt_call(client, RPCMNT_DUMP, xdr_void, (char *)0,                  estat = clnt_call(client, RPCMNT_DUMP, xdr_void, (char *)0,

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