git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cde691
)
Use existing ISDOT and ISDOTDOT macros.
author
Jeremy Allison
<jra@samba.org>
Mon, 25 Jul 2011 23:12:45 +0000
(16:12 -0700)
committer
Jeremy Allison
<jra@samba.org>
Thu, 28 Jul 2011 00:09:20 +0000
(
02:09
+0200)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Jul 28 02:09:20 CEST 2011 on sn-devel-104
source3/smbd/filename.c
patch
|
blob
|
history
diff --git
a/source3/smbd/filename.c
b/source3/smbd/filename.c
index ec8d1139faa71ca187caf35500bda635ea772831..610a4ce42aad5c08b23e04442e20ad5fd5b9561a 100644
(file)
--- a/
source3/smbd/filename.c
+++ b/
source3/smbd/filename.c
@@
-987,8
+987,7
@@
NTSTATUS check_name(connection_struct *conn, const char *name)
{
if (IS_VETO_PATH(conn, name)) {
/* Is it not dot or dot dot. */
- if (!((name[0] == '.') && (!name[1] ||
- (name[1] == '.' && !name[2])))) {
+ if (!(ISDOT(name) || ISDOTDOT(name))) {
DEBUG(5,("check_name: file path name %s vetoed\n",
name));
return map_nt_error_from_unix(ENOENT);