summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2000-11-30 19:10:04 +0000
committerMarcus Brinkmann <marcus@gnu.org>2000-11-30 19:10:04 +0000
commit603872c61f08c8d86bea2732d2cbf2ac56f25cb3 (patch)
treeda10140007510740ba8c41f606e410881711653f
parent094bbd5f9f9215782cf58e6319aedd8aefb2944d (diff)
ext2fs, ufs:
2000-11-30 Marcus Brinkmann <marcus@gnu.org> * dir.c (diskfs_lookup_hard): If name is too long, clear DS before returning ENAMETOOLONG. pfinet: 2000-11-02 Marcus Brinkmann <marcus@gnu.org> * tunnel.c (trivfs_S_io_get_owner): Add return type to silence compiler warning.
-rw-r--r--ext2fs/ChangeLog5
-rw-r--r--ext2fs/dir.c6
-rw-r--r--pfinet/ChangeLog5
-rw-r--r--pfinet/tunnel.c1
-rw-r--r--ufs/ChangeLog5
-rw-r--r--ufs/dir.c6
6 files changed, 26 insertions, 2 deletions
diff --git a/ext2fs/ChangeLog b/ext2fs/ChangeLog
index 53247993..811973f5 100644
--- a/ext2fs/ChangeLog
+++ b/ext2fs/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-30 Marcus Brinkmann <marcus@gnu.org>
+
+ * dir.c (diskfs_lookup_hard): If name is too long, clear
+ DS before returning ENAMETOOLONG.
+
2000-10-01 Roland McGrath <roland@frob.com>
* inode.c (write_node): Use memcpy instead of a loop.
diff --git a/ext2fs/dir.c b/ext2fs/dir.c
index bc83d3b0..2887e1b0 100644
--- a/ext2fs/dir.c
+++ b/ext2fs/dir.c
@@ -161,7 +161,11 @@ diskfs_lookup_hard (struct node *dp, const char *name, enum lookup_type type,
namelen = strlen (name);
if (namelen > EXT2_NAME_LEN)
- return ENAMETOOLONG;
+ {
+ if (ds)
+ diskfs_null_dirstat (ds);
+ return ENAMETOOLONG;
+ }
try_again:
if (ds)
diff --git a/pfinet/ChangeLog b/pfinet/ChangeLog
index 6eddecf8..5b83b213 100644
--- a/pfinet/ChangeLog
+++ b/pfinet/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-02 Marcus Brinkmann <marcus@gnu.org>
+
+ * tunnel.c (trivfs_S_io_get_owner): Add return type to silence
+ compiler warning.
+
2000-10-06 Marcus Brinkmann <marcus@gnu.org>
* Makefile (SRCS): Add tunnel.c
diff --git a/pfinet/tunnel.c b/pfinet/tunnel.c
index 6c206fec..93bcbb02 100644
--- a/pfinet/tunnel.c
+++ b/pfinet/tunnel.c
@@ -573,6 +573,7 @@ trivfs_S_io_clear_some_openmodes (struct trivfs_protid *cred,
return 0;
}
+error_t
trivfs_S_io_get_owner (struct trivfs_protid *cred,
mach_port_t reply,
mach_msg_type_name_t reply_type,
diff --git a/ufs/ChangeLog b/ufs/ChangeLog
index a83d02b8..82ada32f 100644
--- a/ufs/ChangeLog
+++ b/ufs/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-30 Marcus Brinkmann <marcus@gnu.org>
+
+ * dir.c (diskfs_lookup_hard): If name is too long, clear
+ DS before returning ENAMETOOLONG.
+
2000-07-26 Mark Kettenis <kettenis@gnu.org>
* Makefile (HURDLIBS): Reorder libs such that the threads lib
diff --git a/ufs/dir.c b/ufs/dir.c
index 8077234c..2cc77398 100644
--- a/ufs/dir.c
+++ b/ufs/dir.c
@@ -126,7 +126,11 @@ diskfs_lookup_hard (struct node *dp, const char *name, enum lookup_type type,
namelen = strlen (name);
if (namelen > MAXNAMLEN)
- return ENAMETOOLONG;
+ {
+ if (ds)
+ diskfs_null_dirstat (ds);
+ return ENAMETOOLONG;
+ }
try_again:
if (ds)