summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-09-09 19:24:06 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-09-09 19:24:06 +0000
commitab194f2d5f0f65b726c41f2ae46a2b26e46b45b6 (patch)
treee5ed119f181777b09b1204b625cad36c5b70a5f8 /libdiskfs
parent4571431117f4521549018f9cf544ba7e06c8f7bc (diff)
Formerly dir-lookup.c.~6~
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/dir-lookup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c
index 0b3cea14..0eaba6c3 100644
--- a/libdiskfs/dir-lookup.c
+++ b/libdiskfs/dir-lookup.c
@@ -132,7 +132,8 @@ diskfs_S_dir_lookup (struct protid *dircred,
*retry = FS_RETRY_REAUTH;
*returned_port = dircred->po->dotdotport;
*returned_port_poly = MACH_MSG_TYPE_COPY_SEND;
- strcpy (retryname, nextname);
+ if (!lastcomp)
+ strcpy (retryname, nextname);
error = 0;
goto out;
}