Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
96df3310
Commit
96df3310
authored
Feb 10, 2004
by
Ben Collins
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://linux.bkbits.net/linux-2.5
into debian.org:/usr/src/kernel/ieee1394-2.6
parents
29fc4510
7b080b4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
fs/smbfs/proc.c
fs/smbfs/proc.c
+7
-7
No files found.
fs/smbfs/proc.c
View file @
96df3310
...
...
@@ -560,19 +560,19 @@ static int smb_filetype_to_mode(u32 filetype)
static
u32
smb_filetype_from_mode
(
int
mode
)
{
if
(
mode
&
S_IFREG
)
if
(
S_ISREG
(
mode
)
)
return
UNIX_TYPE_FILE
;
if
(
mode
&
S_IFDIR
)
if
(
S_ISDIR
(
mode
)
)
return
UNIX_TYPE_DIR
;
if
(
mode
&
S_IFLNK
)
if
(
S_ISLNK
(
mode
)
)
return
UNIX_TYPE_SYMLINK
;
if
(
mode
&
S_IFCHR
)
if
(
S_ISCHR
(
mode
)
)
return
UNIX_TYPE_CHARDEV
;
if
(
mode
&
S_IFBLK
)
if
(
S_ISBLK
(
mode
)
)
return
UNIX_TYPE_BLKDEV
;
if
(
mode
&
S_IFIFO
)
if
(
S_ISFIFO
(
mode
)
)
return
UNIX_TYPE_FIFO
;
if
(
mode
&
S_IFSOCK
)
if
(
S_ISSOCK
(
mode
)
)
return
UNIX_TYPE_SOCKET
;
return
UNIX_TYPE_UNKNOWN
;
}
...
...
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