diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-11-03 09:16:12 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-11-03 09:16:12 +0000 |
commit | ff46cb204ec68f636a27731ff16a20ddf7e976e2 (patch) | |
tree | 92d03bd535a956a40bdb685ece296914a40c448e /dotlock | |
parent | 22ec3a0d2c9a554ed2967d5127eb5cd4b399b0d1 (diff) | |
download | mailutils-ff46cb204ec68f636a27731ff16a20ddf7e976e2.tar.gz mailutils-ff46cb204ec68f636a27731ff16a20ddf7e976e2.tar.bz2 |
Removed -T option (CAN-2004-0984)
Diffstat (limited to 'dotlock')
-rw-r--r-- | dotlock/dotlock.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/dotlock/dotlock.c b/dotlock/dotlock.c index c2d6c11e9..98b052baf 100644 --- a/dotlock/dotlock.c +++ b/dotlock/dotlock.c @@ -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) |