Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/sysvbfs Make sysvbfs rename work for filenames longer...
details: https://anonhg.NetBSD.org/src/rev/687c0a01ac74
branches: trunk
changeset: 756613:687c0a01ac74
user: njoly <njoly%NetBSD.org@localhost>
date: Mon Jul 26 13:43:26 2010 +0000
description:
Make sysvbfs rename work for filenames longer than {NAME_MAX}.
diffstat:
sys/fs/sysvbfs/bfs.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (29 lines):
diff -r 9839bb552a0f -r 687c0a01ac74 sys/fs/sysvbfs/bfs.c
--- a/sys/fs/sysvbfs/bfs.c Mon Jul 26 13:37:48 2010 +0000
+++ b/sys/fs/sysvbfs/bfs.c Mon Jul 26 13:43:26 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bfs.c,v 1.12 2009/04/26 12:41:59 uch Exp $ */
+/* $NetBSD: bfs.c,v 1.13 2010/07/26 13:43:26 njoly Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bfs.c,v 1.12 2009/04/26 12:41:59 uch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bfs.c,v 1.13 2010/07/26 13:43:26 njoly Exp $");
#define BFS_DEBUG
#include <sys/param.h>
@@ -337,10 +337,6 @@
struct bfs_dirent *dirent;
int err = 0;
- if (strlen(to_name) > BFS_FILENAME_MAXLEN) {
- err = ENAMETOOLONG;
- goto out;
- }
if (!bfs_dirent_lookup_by_name(bfs, from_name, &dirent)) {
err = ENOENT;
goto out;
Home |
Main Index |
Thread Index |
Old Index