Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
db0b9577
...
db0b9577b0307cbf6e75e4ecc0d1f553f216ad9a
authored
2002-12-28 10:51:09 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Handle MU_STREAM_ALLOW_LINKS.
1 parent
b42efaf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
mailbox/file_stream.c
mailbox/file_stream.c
View file @
db0b957
...
...
@@ -431,11 +431,12 @@ _file_open (stream_t stream)
/* Now check that: file and fd reference the same file,
file only has one link, file is plain file. */
if
(
fdbuf
.
st_dev
!=
filebuf
.
st_dev
||
fdbuf
.
st_ino
!=
filebuf
.
st_ino
||
fdbuf
.
st_nlink
!=
1
||
filebuf
.
st_nlink
!=
1
||
(
fdbuf
.
st_mode
&
S_IFMT
)
!=
S_IFREG
)
if
(
!
(
flags
&
MU_STREAM_ALLOW_LINKS
)
&&
(
fdbuf
.
st_dev
!=
filebuf
.
st_dev
||
fdbuf
.
st_ino
!=
filebuf
.
st_ino
||
fdbuf
.
st_nlink
!=
1
||
filebuf
.
st_nlink
!=
1
||
(
fdbuf
.
st_mode
&
S_IFMT
)
!=
S_IFREG
))
{
mu_error
(
_
(
"%s must be a plain file with one link
\n
"
),
filename
);
close
(
fd
);
...
...
Please
register
or
sign in
to post a comment