getpwent.c (11436) | getpwent.c (11659) |
---|---|
1/* 2 * Copyright (c) 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 533 unchanged lines hidden (view full) --- 542 } 543 } 544 return(0); 545} 546 547static int 548_pw_breakout_yp(struct passwd *pw, char *res, int master) 549{ | 1/* 2 * Copyright (c) 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 533 unchanged lines hidden (view full) --- 542 } 543 } 544 return(0); 545} 546 547static int 548_pw_breakout_yp(struct passwd *pw, char *res, int master) 549{ |
550 char *s, *c, *result; | 550 char *s, *result; |
551 static char resbuf[YPMAXRECORD+2]; 552 553 /* 554 * Be triple, ultra super-duper paranoid: reject entries 555 * that start with a + or -. yp_mkdb and /var/yp/Makefile 556 * are _both_ supposed to strip these out, but you never 557 * know. 558 */ --- 217 unchanged lines hidden --- | 551 static char resbuf[YPMAXRECORD+2]; 552 553 /* 554 * Be triple, ultra super-duper paranoid: reject entries 555 * that start with a + or -. yp_mkdb and /var/yp/Makefile 556 * are _both_ supposed to strip these out, but you never 557 * know. 558 */ --- 217 unchanged lines hidden --- |