Don't require argc > 1

This commit is contained in:
Ray Strode 2008-06-03 23:23:25 -04:00
parent 44c2e66f25
commit fe6ba292f5

View file

@ -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 <pty_master_fd>]", argv[0]);
return EX_USAGE;