From fe6ba292f59ee8c8cd4b9a2acf3c1052adf356ed Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 3 Jun 2008 23:23:25 -0400 Subject: [PATCH] Don't require argc > 1 --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 52d80347..918663d0 100644 --- a/src/main.c +++ b/src/main.c @@ -583,7 +583,7 @@ main (int argc, } } - if (argc <= 1 || (attach_to_session && argc != 3) || (attach_to_session && state.ptmx == -1)) + if ((attach_to_session && argc != 3) || (attach_to_session && state.ptmx == -1)) { ply_error ("%s [--attach-to-session ]", argv[0]); return EX_USAGE;