patches for easier mirroring, to eliminate a special copy, to make www.freebsd.org/security a full copy of security.freebsd.org and be eventually be the same. For now files are just sitting there. The symlinks are missing. Discussed on: www (repository location) Discussed with: simon (so)
17 lines
507 B
Diff
17 lines
507 B
Diff
Index: sys/kern/vfs_lookup.c
|
|
===================================================================
|
|
--- sys/kern/vfs_lookup.c (revision 200583)
|
|
+++ sys/kern/vfs_lookup.c (working copy)
|
|
@@ -552,6 +552,12 @@ dirloop:
|
|
else
|
|
cnp->cn_flags &= ~ISLASTCN;
|
|
|
|
+ if ((cnp->cn_flags & ISLASTCN) != 0 &&
|
|
+ cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.' &&
|
|
+ (cnp->cn_nameiop == DELETE || cnp->cn_nameiop == RENAME)) {
|
|
+ error = EINVAL;
|
|
+ goto bad;
|
|
+ }
|
|
|
|
/*
|
|
* Check for degenerate name (e.g. / or "")
|