Module Name: src
Committed By: njoly
Date: Mon Jul 26 13:43:26 UTC 2010
Modified Files:
src/sys/fs/sysvbfs: bfs.c
Log Message:
Make sysvbfs rename work for filenames longer than {NAME_MAX}.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/fs/sysvbfs/bfs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/fs/sysvbfs/bfs.c
diff -u src/sys/fs/sysvbfs/bfs.c:1.12 src/sys/fs/sysvbfs/bfs.c:1.13
--- src/sys/fs/sysvbfs/bfs.c:1.12 Sun Apr 26 12:41:59 2009
+++ src/sys/fs/sysvbfs/bfs.c Mon Jul 26 13:43:26 2010
@@ -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;