diff options
author | svn2git <svn2git@FreeBSD.org> | 1994-07-01 08:00:00 +0000 |
---|---|---|
committer | svn2git <svn2git@FreeBSD.org> | 1994-07-01 08:00:00 +0000 |
commit | 5e0e9b99dc3fc0ecd49d929db0d57c784b66f481 (patch) | |
tree | e779b5a6edddbb949b7990751b12d6f25304ba86 /sys/pcfs/pcfs_conv.c | |
parent | a16f65c7d117419bd266c28a1901ef129a337569 (diff) |
Diffstat (limited to 'sys/pcfs/pcfs_conv.c')
-rw-r--r-- | sys/pcfs/pcfs_conv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pcfs/pcfs_conv.c b/sys/pcfs/pcfs_conv.c index 66fbba06216f..4fb706f0d81e 100644 --- a/sys/pcfs/pcfs_conv.c +++ b/sys/pcfs/pcfs_conv.c @@ -15,7 +15,7 @@ * * October 1992 * - * $Id: pcfs_conv.c,v 1.4 1993/12/19 00:54:27 wollman Exp $ + * $Id: pcfs_conv.c,v 1.5 1994/04/07 00:30:35 ache Exp $ */ /* @@ -297,11 +297,11 @@ unix2dosfn(un, dn, unlen) * The filenames "." and ".." are handled specially, * since they don't follow dos filename rules. */ - if (un[0] == '.' && un[1] == '\0') { + if (un[0] == '.' && unlen == 1) { dn[0] = '.'; return; } - if (un[0] == '.' && un[1] == '.' && un[2] == '\0') { + if (un[0] == '.' && un[1] == '.' && unlen == 2) { dn[0] = '.'; dn[1] = '.'; return; |