=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rdistd/filesys.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/rdistd/filesys.c 2001/11/19 19:02:15 1.7 --- src/usr.bin/rdistd/filesys.c 2003/04/05 20:31:58 1.8 *************** *** 1,4 **** ! /* $OpenBSD: filesys.c,v 1.7 2001/11/19 19:02:15 mpech Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: filesys.c,v 1.8 2003/04/05 20:31:58 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. *************** *** 39,45 **** "$From: filesys.c,v 6.24 1996/01/30 01:57:07 mcooper Exp $"; #else static char RCSid[] = ! "$OpenBSD: filesys.c,v 1.7 2001/11/19 19:02:15 mpech Exp $"; #endif static char sccsid[] = "@(#)filesys.c"; --- 39,45 ---- "$From: filesys.c,v 6.24 1996/01/30 01:57:07 mcooper Exp $"; #else static char RCSid[] = ! "$OpenBSD: filesys.c,v 1.8 2003/04/05 20:31:58 deraadt Exp $"; #endif static char sccsid[] = "@(#)filesys.c"; *************** *** 100,117 **** /* * Save for next time */ ! (void) strcpy(last_pathname, pathname); if (*pathname == '/') ! (void) strcpy(file, pathname); else { /* * Ensure we have a directory (".") in our path * so we have something to stat in case the file * does not exist. */ ! (void) strcpy(file, "./"); ! (void) strcat(file, pathname); } while (lstat(file, &filestat) != 0) { --- 100,117 ---- /* * Save for next time */ ! (void) strlcpy(last_pathname, pathname, sizeof last_pathname); if (*pathname == '/') ! (void) strlcpy(file, pathname, sizeof file); else { /* * Ensure we have a directory (".") in our path * so we have something to stat in case the file * does not exist. */ ! (void) strlcpy(file, "./", sizeof file); ! (void) strlcat(file, pathname, sizeof file); } while (lstat(file, &filestat) != 0) {