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

Diff for /src/usr.bin/passwd/Attic/yp_passwd.c between version 1.6 and 1.7

version 1.6, 1997/02/16 20:09:00 version 1.7, 1997/02/17 10:34:41
Line 165 
Line 165 
         if (client==NULL) {          if (client==NULL) {
                 fprintf(stderr, "cannot contact yppasswdd on %s: Reason: %s\n",                  fprintf(stderr, "cannot contact yppasswdd on %s: Reason: %s\n",
                     master, yperr_string(YPERR_YPBIND));                      master, yperr_string(YPERR_YPBIND));
                   free(yppasswd.newpw.pw_passwd);
                 return(YPERR_YPBIND);                  return(YPERR_YPBIND);
         }          }
         client->cl_auth = authunix_create_default();          client->cl_auth = authunix_create_default();
Line 176 
Line 177 
                 fprintf(stderr, "%s: rpc to yppasswdd failed.\n", progname);                  fprintf(stderr, "%s: rpc to yppasswdd failed.\n", progname);
         else if (status) {          else if (status) {
                 printf("Couldn't change YP password.\n");                  printf("Couldn't change YP password.\n");
                   free(yppasswd.newpw.pw_passwd);
                 exit(1);                  exit(1);
         }          }
         printf("The YP password has been changed on %s, the master YP passwd server.\n",          printf("The YP password has been changed on %s, the master YP passwd server.\n",
             master);              master);
           free(yppasswd.newpw.pw_passwd);
         exit(0);          exit(0);
 }  }
   

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