Module Name: src
Committed By: pooka
Date: Fri Feb 18 14:44:46 UTC 2011
Modified Files:
src/lib/librumphijack: hijack.c
Log Message:
block cross-kernel rename in the other direction also
To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/lib/librumphijack/hijack.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librumphijack/hijack.c
diff -u src/lib/librumphijack/hijack.c:1.52 src/lib/librumphijack/hijack.c:1.53
--- src/lib/librumphijack/hijack.c:1.52 Fri Feb 18 14:33:11 2011
+++ src/lib/librumphijack/hijack.c Fri Feb 18 14:44:46 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: hijack.c,v 1.52 2011/02/18 14:33:11 pooka Exp $ */
+/* $NetBSD: hijack.c,v 1.53 2011/02/18 14:44:46 pooka Exp $ */
/*-
* Copyright (c) 2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: hijack.c,v 1.52 2011/02/18 14:33:11 pooka Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.53 2011/02/18 14:44:46 pooka Exp $");
#define __ssp_weak_name(fun) _hijack_ ## fun
@@ -702,6 +702,9 @@
to = path_host2rump(to);
op_rename = GETSYSCALL(rump, RENAME);
} else {
+ if (path_isrump(to))
+ return EXDEV;
+
op_rename = GETSYSCALL(host, RENAME);
}