=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/fileio.c,v retrieving revision 1.72 retrieving revision 1.73 diff -u -r1.72 -r1.73 --- src/usr.bin/mg/fileio.c 2006/05/03 22:19:41 1.72 +++ src/usr.bin/mg/fileio.c 2006/05/03 22:25:34 1.73 @@ -1,4 +1,4 @@ -/* $OpenBSD: fileio.c,v 1.72 2006/05/03 22:19:41 kjell Exp $ */ +/* $OpenBSD: fileio.c,v 1.73 2006/05/03 22:25:34 kjell Exp $ */ /* This file is in the public domain. */ @@ -234,9 +234,9 @@ } /* - * The string "fn" is a file name. Perform any required appending of directory - * name or case adjustments. The same file should be referred to even if the - * working directory changes. + * Convert "fn" to a canonicalized absolute filename, replacing + * a leading ~/ with the user's home dir, following symlinks, and + * and remove all occurences of /./ and /../ */ char * adjustname(const char *fn)