summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-11-24 13:02:34 -0800
committerJeremy Allison <jra@samba.org>2009-11-24 13:02:34 -0800
commit187ef6b482273244d3b5b716881ab7b5d328cbc1 (patch)
treea6f06b2d3320f3ff8624df291caa68367c7139ff
parent9e852a1759e87d708885b690f78cdd11080f8b6e (diff)
downloadsamba-187ef6b482273244d3b5b716881ab7b5d328cbc1.tar.gz
samba-187ef6b482273244d3b5b716881ab7b5d328cbc1.tar.bz2
samba-187ef6b482273244d3b5b716881ab7b5d328cbc1.zip
Fix make test. Only do POSIX case conversion if FILE_FLAG_POSIX_SEMANTICS set. Doh !
Jeremy.
-rw-r--r--source3/smbd/nttrans.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 809c543a15..16f8bb592a 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -522,10 +522,12 @@ void reply_ntcreate_and_X(struct smb_request *req)
? BATCH_OPLOCK : 0;
}
- case_state = set_posix_case_semantics(ctx, conn);
- if (!case_state) {
- reply_nterror(req, NT_STATUS_NO_MEMORY);
- goto out;
+ if (file_attributes & FILE_FLAG_POSIX_SEMANTICS) {
+ case_state = set_posix_case_semantics(ctx, conn);
+ if (!case_state) {
+ reply_nterror(req, NT_STATUS_NO_MEMORY);
+ goto out;
+ }
}
status = filename_convert(ctx,
@@ -1054,10 +1056,12 @@ static void call_nt_transact_create(connection_struct *conn,
goto out;
}
- case_state = set_posix_case_semantics(ctx, conn);
- if (!case_state) {
- reply_nterror(req, NT_STATUS_NO_MEMORY);
- goto out;
+ if (file_attributes & FILE_FLAG_POSIX_SEMANTICS) {
+ case_state = set_posix_case_semantics(ctx, conn);
+ if (!case_state) {
+ reply_nterror(req, NT_STATUS_NO_MEMORY);
+ goto out;
+ }
}
status = filename_convert(ctx,