Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etercifs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etercifs
Commits
b0966a09
Commit
b0966a09
authored
Nov 09, 2013
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 3.9 sources from stable (v3.9.11)
parent
1c85a8c0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
12 deletions
+16
-12
cifs_unicode.h
sources/3.9/cifs_unicode.h
+4
-4
cifsencrypt.c
sources/3.9/cifsencrypt.c
+3
-3
file.c
sources/3.9/file.c
+4
-5
inode.c
sources/3.9/inode.c
+5
-0
No files found.
sources/3.9/cifs_unicode.h
View file @
b0966a09
...
...
@@ -327,14 +327,14 @@ UniToupper(register wchar_t uc)
/*
* UniStrupr: Upper case a unicode string
*/
static
inline
wchar_t
*
UniStrupr
(
register
wchar_t
*
upin
)
static
inline
__le16
*
UniStrupr
(
register
__le16
*
upin
)
{
register
wchar_t
*
up
;
register
__le16
*
up
;
up
=
upin
;
while
(
*
up
)
{
/* For all characters */
*
up
=
UniToupper
(
*
up
);
*
up
=
cpu_to_le16
(
UniToupper
(
le16_to_cpu
(
*
up
))
);
up
++
;
}
return
upin
;
/* Return input pointer */
...
...
sources/3.9/cifsencrypt.c
View file @
b0966a09
...
...
@@ -415,7 +415,7 @@ static int calc_ntlmv2_hash(struct cifs_ses *ses, char *ntlmv2_hash,
int
rc
=
0
;
int
len
;
char
nt_hash
[
CIFS_NTHASH_SIZE
];
wchar_t
*
user
;
__le16
*
user
;
wchar_t
*
domain
;
wchar_t
*
server
;
...
...
@@ -440,7 +440,7 @@ static int calc_ntlmv2_hash(struct cifs_ses *ses, char *ntlmv2_hash,
return
rc
;
}
/* convert ses->user_name to unicode
and uppercase
*/
/* convert ses->user_name to unicode */
len
=
ses
->
user_name
?
strlen
(
ses
->
user_name
)
:
0
;
user
=
kmalloc
(
2
+
(
len
*
2
),
GFP_KERNEL
);
if
(
user
==
NULL
)
{
...
...
@@ -450,7 +450,7 @@ static int calc_ntlmv2_hash(struct cifs_ses *ses, char *ntlmv2_hash,
}
if
(
len
)
{
len
=
cifs_strtoUTF16
(
(
__le16
*
)
user
,
ses
->
user_name
,
len
,
nls_cp
);
len
=
cifs_strtoUTF16
(
user
,
ses
->
user_name
,
len
,
nls_cp
);
UniStrupr
(
user
);
}
else
{
memset
(
user
,
'\0'
,
2
);
...
...
sources/3.9/file.c
View file @
b0966a09
...
...
@@ -560,11 +560,10 @@ cifs_relock_file(struct cifsFileInfo *cfile)
struct
cifs_tcon
*
tcon
=
tlink_tcon
(
cfile
->
tlink
);
int
rc
=
0
;
/* we are going to update can_cache_brlcks here - need a write access */
down_write
(
&
cinode
->
lock_sem
);
down_read
(
&
cinode
->
lock_sem
);
if
(
cinode
->
can_cache_brlcks
)
{
/* can cache locks - no need to
push them
*/
up_
write
(
&
cinode
->
lock_sem
);
/* can cache locks - no need to
relock
*/
up_
read
(
&
cinode
->
lock_sem
);
return
rc
;
}
...
...
@@ -575,7 +574,7 @@ cifs_relock_file(struct cifsFileInfo *cfile)
else
rc
=
tcon
->
ses
->
server
->
ops
->
push_mand_locks
(
cfile
);
up_
write
(
&
cinode
->
lock_sem
);
up_
read
(
&
cinode
->
lock_sem
);
return
rc
;
}
...
...
sources/3.9/inode.c
View file @
b0966a09
...
...
@@ -556,6 +556,11 @@ cifs_all_info_to_fattr(struct cifs_fattr *fattr, FILE_ALL_INFO *info,
fattr
->
cf_mode
&=
~
(
S_IWUGO
);
fattr
->
cf_nlink
=
le32_to_cpu
(
info
->
NumberOfLinks
);
if
(
fattr
->
cf_nlink
<
1
)
{
cFYI
(
1
,
"replacing bogus file nlink value %u
\n
"
,
fattr
->
cf_nlink
);
fattr
->
cf_nlink
=
1
;
}
}
fattr
->
cf_uid
=
cifs_sb
->
mnt_uid
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment