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

Diff for /src/usr.bin/chpass/Attic/pw_yp.c between version 1.5 and 1.6

version 1.5, 1996/08/31 13:50:19 version 1.6, 1997/02/13 17:28:40
Line 149 
Line 149 
         if (client==NULL) {          if (client==NULL) {
                 fprintf(stderr, "can't contact yppasswdd on %s: Reason: %s\n",                  fprintf(stderr, "can't contact yppasswdd on %s: Reason: %s\n",
                     master, yperr_string(YPERR_YPBIND));                      master, yperr_string(YPERR_YPBIND));
                 return(0);                  return(1);
         }          }
         client->cl_auth = authunix_create_default();          client->cl_auth = authunix_create_default();
         tv.tv_sec = 5;          tv.tv_sec = 5;
Line 159 
Line 159 
         if (r) {          if (r) {
                 fprintf(stderr, "%s: rpc to yppasswdd failed. %d\n", progname, r);                  fprintf(stderr, "%s: rpc to yppasswdd failed. %d\n", progname, r);
                 clnt_destroy(client);                  clnt_destroy(client);
                 return(0);                  return(1);
         } else if (status) {          } else if (status) {
                 printf("Couldn't change YP password information.\n");                  printf("Couldn't change YP password information.\n");
                 clnt_destroy(client);                  clnt_destroy(client);
                 return(0);                  return(1);
         }          }
         printf("The YP password information has been changed on %s, the master YP passwd server.\n", master);          printf("The YP password information has been changed on %s, the master YP passwd server.\n", master);
   
         clnt_destroy(client);          clnt_destroy(client);
         return(1);          return(0);
 }  }
   
 static char *  static char *

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6