From 120bc9b898c0e54be78a4803f250605a294c7742 Mon Sep 17 00:00:00 2001
From: obarun <eric@obarun.org>
Date: Sun, 27 Nov 2022 17:06:47 +1100
Subject: [PATCH] prefer subgetopt_r for now

---
 src/lib66/exec/ssexec_parse.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib66/exec/ssexec_parse.c b/src/lib66/exec/ssexec_parse.c
index 4fedfc06..db1a6849 100644
--- a/src/lib66/exec/ssexec_parse.c
+++ b/src/lib66/exec/ssexec_parse.c
@@ -65,9 +65,9 @@ int ssexec_parse(int argc, char const *const *argv, ssexec_t *info)
 
         for (;;)
         {
-            int opt = getopt_args(argc,argv, ">" OPTS_PARSE, &l) ;
+            int opt = subgetopt_r(argc,argv, OPTS_PARSE, &l) ;
             if (opt == -1) break ;
-            if (opt == -2) log_die(LOG_EXIT_USER, "options must be set first") ;
+
             switch (opt)
             {
                 case 'f' :
-- 
GitLab