=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rdistd/filesys.c,v retrieving revision 1.3 retrieving revision 1.4 diff -c -r1.3 -r1.4 *** src/usr.bin/rdistd/filesys.c 1996/06/26 05:38:21 1.3 --- src/usr.bin/rdistd/filesys.c 1996/07/29 20:46:40 1.4 *************** *** 1,4 **** ! /* $OpenBSD: filesys.c,v 1.3 1996/06/26 05:38:21 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: filesys.c,v 1.4 1996/07/29 20:46:40 millert Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. *************** *** 35,41 **** #ifndef lint static char RCSid[] = ! "$OpenBSD: filesys.c,v 1.3 1996/06/26 05:38:21 deraadt Exp $"; static char sccsid[] = "@(#)filesys.c"; --- 35,41 ---- #ifndef lint static char RCSid[] = ! "$OpenBSD: filesys.c,v 1.4 1996/07/29 20:46:40 millert Exp $"; static char sccsid[] = "@(#)filesys.c"; *************** *** 119,127 **** * Normally we want to change /dir1/dir2/file * into "/dir1/dir2/." */ ! if (p = (char *) strrchr(file, '/')) { ! *++p = '.'; ! *++p = CNULL; } else { /* * Couldn't find anything, so give up. --- 119,131 ---- * Normally we want to change /dir1/dir2/file * into "/dir1/dir2/." */ ! if ((p = (char *) strrchr(file, '/'))) { ! if (strcmp(p, "/.") == 0) { ! *p = CNULL; ! } else { ! *++p = '.'; ! *++p = CNULL; ! } } else { /* * Couldn't find anything, so give up.