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
c4e656c6
...
c4e656c6b527f269f7665ffe7fa65a94c2c55be8
authored
2005-07-25 20:21:01 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(locker_lock): Allow for non-absolute file names.
1 parent
eea4f28c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
mailbox/locker.c
mailbox/locker.c
View file @
c4e656c
...
...
@@ -425,8 +425,14 @@ locker_lock (locker_t lock)
strcpy
(
tmp
,
lock
->
file
);
p
=
strrchr
(
tmp
,
'/'
);
/* A '/' must be present, if not we'll coredump, and that's
correct! */
if
(
!
p
)
{
free
(
tmp
);
tmp
=
strdup
(
"."
);
if
(
!
tmp
)
return
ENOMEM
;
}
else
*
p
=
0
;
if
(
access
(
tmp
,
W_OK
))
...
...
Please
register
or
sign in
to post a comment