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
a0811b14
Commit
a0811b14
authored
Apr 13, 2012
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 2.6.34 sources from stable (v2.6.34.11)
parent
6565ca09
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
connect.c
sources/2.6.34/connect.c
+6
-1
inode.c
sources/2.6.34/inode.c
+6
-6
sess.c
sources/2.6.34/sess.c
+3
-1
No files found.
sources/2.6.34/connect.c
View file @
a0811b14
...
...
@@ -2284,6 +2284,11 @@ is_path_accessible(int xid, struct cifsTconInfo *tcon,
0
/* not legacy */
,
cifs_sb
->
local_nls
,
cifs_sb
->
mnt_cifs_flags
&
CIFS_MOUNT_MAP_SPECIAL_CHR
);
if
(
rc
==
-
EOPNOTSUPP
||
rc
==
-
EINVAL
)
rc
=
SMBQueryInformation
(
xid
,
tcon
,
full_path
,
pfile_info
,
cifs_sb
->
local_nls
,
cifs_sb
->
mnt_cifs_flags
&
CIFS_MOUNT_MAP_SPECIAL_CHR
);
kfree
(
pfile_info
);
return
rc
;
}
...
...
@@ -2586,7 +2591,7 @@ try_mount_again:
remote_path_check:
/* check if a whole path (including prepath) is not remote */
if
(
!
rc
&&
cifs_sb
->
prepathlen
&&
tcon
)
{
if
(
!
rc
&&
tcon
)
{
/* build_path_to_root works only when we have a valid tcon */
full_path
=
cifs_build_path_to_root
(
cifs_sb
);
if
(
full_path
==
NULL
)
{
...
...
sources/2.6.34/inode.c
View file @
a0811b14
...
...
@@ -798,8 +798,10 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino)
rc
=
cifs_get_inode_info
(
&
inode
,
full_path
,
NULL
,
sb
,
xid
,
NULL
);
if
(
!
inode
)
return
ERR_PTR
(
-
ENOMEM
);
if
(
!
inode
)
{
inode
=
ERR_PTR
(
-
ENOMEM
);
goto
out
;
}
if
(
rc
&&
cifs_sb
->
tcon
->
ipc
)
{
cFYI
(
1
,
(
"ipc connection - fake read inode"
));
...
...
@@ -810,13 +812,11 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino)
inode
->
i_uid
=
cifs_sb
->
mnt_uid
;
inode
->
i_gid
=
cifs_sb
->
mnt_gid
;
}
else
if
(
rc
)
{
kfree
(
full_path
);
_FreeXid
(
xid
);
iget_failed
(
inode
);
return
ERR_PTR
(
rc
);
inode
=
ERR_PTR
(
rc
);
}
out:
kfree
(
full_path
);
/* can not call macro FreeXid here since in a void func
* TODO: This is no longer true
...
...
sources/2.6.34/sess.c
View file @
a0811b14
...
...
@@ -906,7 +906,9 @@ ssetup_ntlmssp_authenticate:
}
/* BB check if Unicode and decode strings */
if
(
smb_buf
->
Flags2
&
SMBFLG2_UNICODE
)
{
if
(
bytes_remaining
==
0
)
{
/* no string area to decode, do nothing */
}
else
if
(
smb_buf
->
Flags2
&
SMBFLG2_UNICODE
)
{
/* unicode string area must be word-aligned */
if
(((
unsigned
long
)
bcc_ptr
-
(
unsigned
long
)
smb_buf
)
%
2
)
{
++
bcc_ptr
;
...
...
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