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
ff46cb20
...
ff46cb204ec68f636a27731ff16a20ddf7e976e2
authored
2004-11-03 09:16:12 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Removed -T option (CAN-2004-0984)
1 parent
22ec3a0d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
dotlock/dotlock.c
dotlock/dotlock.c
View file @
ff46cb2
...
...
@@ -75,7 +75,6 @@ static int flags;
static
int
retries
;
static
int
force
;
static
int
debug
;
static
const
char
*
program
;
static
error_t
parse_opt
(
int
key
,
char
*
arg
,
struct
argp_state
*
state
)
...
...
@@ -90,13 +89,6 @@ parse_opt (int key, char *arg, struct argp_state *state)
unlock
=
1
;
break
;
case
'T'
:
/* This options exists only to test whether internal and external
locking work correctly/the same. */
flags
|=
MU_LOCKER_EXTERNAL
;
program
=
arg
;
break
;
case
'r'
:
if
(
arg
)
{
...
...
@@ -138,15 +130,15 @@ main (int argc, char *argv[])
{
locker_t
locker
=
0
;
int
err
=
0
;
pid_t
usergid
=
getgid
();
pid_t
mailgid
=
getegid
();
pid_t
usergid
=
getgid
();
pid_t
mailgid
=
getegid
();
/* Native Language Support */
mu_init_nls
();
/* Drop permissions during argument parsing. */
if
(
setegid
(
usergid
)
<
0
)
if
(
setegid
(
usergid
)
<
0
)
return
MU_DL_EX_ERROR
;
mu_argp_init
(
program_version
,
NULL
);
...
...
@@ -168,10 +160,7 @@ main (int argc, char *argv[])
if
(
retries
!=
0
)
locker_set_retries
(
locker
,
retries
);
if
(
program
!=
0
)
locker_set_external
(
locker
,
program
);
if
(
setegid
(
mailgid
)
<
0
)
if
(
setegid
(
mailgid
)
<
0
)
return
MU_DL_EX_ERROR
;
if
(
unlock
)
...
...
Please
register
or
sign in
to post a comment