diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-12 05:33:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:49 -0500 |
commit | 4962d9d03efd91bf4e7209cff47877f20d7de25d (patch) | |
tree | 986ee9e7543626ba38ba1b61069801aedb4fe7d5 /source4/ntvfs/posix/pvfs_resolve.c | |
parent | 52f525c104ae2d17901f104cbf482395dc803cc1 (diff) | |
download | samba-4962d9d03efd91bf4e7209cff47877f20d7de25d.tar.gz samba-4962d9d03efd91bf4e7209cff47877f20d7de25d.tar.bz2 samba-4962d9d03efd91bf4e7209cff47877f20d7de25d.zip |
r2928: - fixed the handling of reserved names (rejecting them with ACCESS_DENIED)
- don't check for '.' specially in checking for legal names. Longhorn
doesn't do this any more, and its a real pain. Longhorn allows for
filenames ending in '.', and with as many '.' elements as you like.
(This used to be commit 0a475175c53016bfa5b8246819676ddcd8b66feb)
Diffstat (limited to 'source4/ntvfs/posix/pvfs_resolve.c')
-rw-r--r-- | source4/ntvfs/posix/pvfs_resolve.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_resolve.c b/source4/ntvfs/posix/pvfs_resolve.c index 5b1a5680ae..01f6b13ec2 100644 --- a/source4/ntvfs/posix/pvfs_resolve.c +++ b/source4/ntvfs/posix/pvfs_resolve.c @@ -84,6 +84,9 @@ static NTSTATUS pvfs_case_search(struct pvfs_state *pvfs, struct pvfs_filename * components[i] = p; p = strchr(p, '/'); if (p) *p++ = 0; + if (pvfs_is_reserved_name(pvfs, components[i])) { + return NT_STATUS_ACCESS_DENIED; + } } partial_name = talloc_strdup(name, components[0]); |