X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=dotlock.c;h=8f1f3083546e7d67c35dcf5066f353529e1ef0c9;hp=8d562c8a50f8499aa7de3463276fad0907355769;hb=9cb385d5621b95188fce2e0a7345004151486007;hpb=f3cbb9f51357972f6e74244494236a41dc4d84cd 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) {