From fe8055abcf2253dabdeb9b34d27ec763b8a6c1d2 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sat, 30 Dec 2000 18:22:29 +0000 Subject: 2000-12-30 Marcus Brinkmann * netfs.h (struct node): Adjust comment fixes by last change to be more in line with similar comments elsewhere. * make-node.c (netfs_make_node): Return 0 if malloc does. Reported by Neal H Walfield . 2000-12-29 Neal H Walfield * dir-lookup.c (netfs_S_dir_lookup): Do not bother zeroing np, it happens later anyway. Replace bcopy with memcpy. * file-get-translator.c (netfs_S_file_get_translator): Replace bcopy with memcpy. * io-seek.c (netfs_S_io_seek): Only get the lock if we need it. * io-stat.c (netfs_S_io_stat): Replace bcopy with memcpy. * io-write.c (netfs_S_io_write): Wait until the lock is needed. * netfs.h: Complete documentation revision. The locking protocol is now very explicit. * nput.c (netfs_nput): Added comment. * nrele.c (netfs_nrele): Likewise. * set-get-trans.c: Likewise. --- libnetfs/dir-lookup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libnetfs/dir-lookup.c') diff --git a/libnetfs/dir-lookup.c b/libnetfs/dir-lookup.c index 6b5cfda9..ed7853ec 100644 --- a/libnetfs/dir-lookup.c +++ b/libnetfs/dir-lookup.c @@ -75,7 +75,6 @@ netfs_S_dir_lookup (struct protid *diruser, dnp = diruser->po->np; mutex_lock (&dnp->lock); - np = 0; netfs_nref (dnp); /* acquire a reference for later netfs_nput */ @@ -300,7 +299,7 @@ netfs_S_dir_lookup (struct protid *diruser, if (nextname) { linkbuf[linklen] = '/'; - bcopy (nextname, linkbuf + linklen + 1, + memcpy (linkbuf + linklen + 1, nextname, nextnamelen - 1); } linkbuf[nextnamelen + linklen] = '\0'; -- cgit v1.2.3