summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-08-21 22:04:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-08-21 22:04:43 +0000
commit4949c9d805597b95f666dffce88276ba4264d9c2 (patch)
tree8bbeea03a5759caab8c3ba1379c8fb48cdc5c66e
parentc74e055495c0fe05de07a62002373b9c055768f9 (diff)
correct readlink(); kleink
-rw-r--r--sys/adosfs/advnops.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/adosfs/advnops.c b/sys/adosfs/advnops.c
index 50628f1d583..683742b82c4 100644
--- a/sys/adosfs/advnops.c
+++ b/sys/adosfs/advnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: advnops.c,v 1.13 1998/08/06 19:34:18 csapuntz Exp $ */
+/* $OpenBSD: advnops.c,v 1.14 1998/08/21 22:04:42 deraadt Exp $ */
/* $NetBSD: advnops.c,v 1.32 1996/10/13 02:52:09 christos Exp $ */
/*
@@ -940,19 +940,12 @@ adosfs_readlink(v)
#ifdef ADOSFS_DIAGNOSTIC
advopprint(sp);
#endif
- error = 0;
ap = VTOA(sp->a_vp);
- if (ap->type != ASLINK)
- error = EBADF;
- /*
- * XXX Should this be NULL terminated?
- */
- if (error == 0)
- error = uiomove(ap->slinkto, strlen(ap->slinkto)+1, sp->a_uio);
+ error = uiomove(ap->slinkto, strlen(ap->slinkto), sp->a_uio);
#ifdef ADOSFS_DIAGNOSTIC
printf(" %d)", error);
#endif
- return(error);
+ return (error);
}
/*ARGSUSED*/