X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=dotlock.c;h=8f1f3083546e7d67c35dcf5066f353529e1ef0c9;hb=8db79e60e71671e49920599664a3e155ce32797e;hp=8d562c8a50f8499aa7de3463276fad0907355769;hpb=f3cbb9f51357972f6e74244494236a41dc4d84cd;p=apps%2Fmadmutt.git diff --git a/dotlock.c b/dotlock.c index 8d562c8..8f1f308 100644 --- a/dotlock.c +++ b/dotlock.c @@ -68,7 +68,9 @@ static int dotlock_unlink (const char *); static int dotlock_lock (const char *); -#define check_flags(a) if (a & DL_FL_ACTIONS) usage (argv[0]) +#define check_flags(a) \ + if (a & (DL_FL_TRY|DL_FL_UNLOCK|DL_FL_UNLINK)) \ + usage(argv[0]) int main (int argc, char **argv) {