$ getconf LINK_MAX
bash: getconf: pathconf LINK_MAX: (null): Bad address
undefined

diff --git a/examples/loadables/getconf.c b/examples/loadables/getconf.c
index f3f1ffcd..285f1b63 100644
--- a/examples/loadables/getconf.c
+++ b/examples/loadables/getconf.c
@@ -1059,12 +1059,12 @@ getconf_one (WORD_LIST *list)
       return (EXECUTION_FAILURE);
     }

- if (c->call_name == PATHCONF && list->next == 0)
+ if (c->call == PATHCONF && list->next == 0)
     {
       builtin_usage ();
       return (EX_USAGE);
     }
- else if (c->call_name != PATHCONF && list->next)
+ else if (c->call != PATHCONF && list->next)
     {
       builtin_usage ();
       return (EX_USAGE);

Reply via email to