diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-03-24 05:14:49 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-03-24 05:14:49 +0000 |
commit | 80fcb5d370cf852c06beef2ad10204c3cecd42d4 (patch) | |
tree | 7554f8bb91dd856c693d86ab2b2822d084127d18 /usr.bin/rcs/ci.c | |
parent | 2bf0aa5f5911d76099d160802d34f1a621efcde6 (diff) |
Allow the -x flag to be used without an extension.
``that makes sense'' xsa@
Diffstat (limited to 'usr.bin/rcs/ci.c')
-rw-r--r-- | usr.bin/rcs/ci.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c index 5dcad5bc3f3..924e4d1a2aa 100644 --- a/usr.bin/rcs/ci.c +++ b/usr.bin/rcs/ci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ci.c,v 1.124 2006/03/23 08:50:41 xsa Exp $ */ +/* $OpenBSD: ci.c,v 1.125 2006/03/24 05:14:48 ray Exp $ */ /* * Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org> * All rights reserved. @@ -29,7 +29,7 @@ #include "rcsprog.h" #include "diff.h" -#define CI_OPTSTRING "d::f::I::i::j::k::l::m:M::N:n:qr::s:Tt:u::Vw:x:z:" +#define CI_OPTSTRING "d::f::I::i::j::k::l::m:M::N:n:qr::s:Tt:u::Vw:x::z:" #define DATE_NOW -1 #define DATE_MTIME -2 @@ -205,7 +205,8 @@ checkin_main(int argc, char **argv) pb.author = xstrdup(rcs_optarg); break; case 'x': - rcs_suffixes = rcs_optarg; + /* Use blank extension if none given. */ + rcs_suffixes = rcs_optarg ? rcs_optarg : ""; break; case 'z': timezone_flag = rcs_optarg; |