summaryrefslogtreecommitdiff
path: root/poptconfig.c
Commit message (Collapse)AuthorAgeFilesLines
* - fix: handle glob(3) error returns (bz#1051685).HEADoriginmasterjbj2017-06-141-1/+5
|
* - fix: SYSCONFDIR as prefix, not literal, when globbing (bz#1051685).jbj2017-06-141-2/+2
|
* - fix: free con->os->nextArg when used (memory leaks).jbj2016-06-271-4/+2
| | | | | | - enable SUPPORT_GLOBAL_CALCULATOR. - revert to SUPPORT_CONTIGUOUS_ARGV: alias/exec have memroy leaks. - add poptGlob_pattern_p() always (portability).
* add cpp suppressions directive for dealing withdevzero20002014-01-081-0/+1
| | | | | false positive. Enable cppcheck inline suppression for the make cppcheck target
* poptconfig.c reduce variables scope (cppcheck warning)devzero20002014-01-081-1/+1
|
* poptconfig.c: add some curly bracesdevzero20002013-12-191-0/+2
| | | | In c89 declarations were only valid at the beginning of blocks.
* poptconfig: drop cppcheck false positivedevzero20002013-12-191-1/+1
|
* - fix: permit reading aliases, remove left over "goto exit" replacing by assert.jbj2013-07-031-1/+0
|
* - fix: handle newly added asset(...) call like elsewhere.jbj2013-06-241-1/+7
|
* - repair memory leak on failure return.jbj2013-06-241-2/+4
|
* fix compiler warning -Wunused-but-set-variable (GCC 4.6)devzero20002011-06-161-2/+1
|
* - fix: plug another memory leak related to contiguous argv malloc.rpm-5_3_10-releasejbj2011-04-191-1/+1
|
* revert bad commit: add missing glob.h and fnmatch.h in configure.ac, add ↵devzero20002011-04-141-0/+1
| | | | struct sb in poptconfig.c
* Rewrite the logic in poptReadDefaultConfig fordevzero20002011-04-141-10/+4
| | | | | | | | | | finding the popt alias file Introduce in Makefile.am an automatically generated configmake.h for setting the gnu standard directory and include it in system.h. So it is possible to semplify poptReadDefaultConfig a bit.
* fix compiler warning (unused var)devzero20002011-01-141-1/+0
|
* Cast all of the mallocs; MSVC demands it.devzero20002010-11-291-9/+9
| | | | | | Merge ae3aa5b8ec929b30789ca45202452529a33108cd from Matt Arsenault <arsenm2@rpi.edu> git://github.com/arsenm/POPT.git master branch
* (style) reduce the scope of variables. drop cppcheck minor warndevzero20002010-07-231-4/+5
|
* use x=_free(x) (the jbj transform) consistentlydevzero20002010-07-231-19/+10
|
* - check realloc returns (Jim Meyering).jbj2009-05-201-1/+2
|
* Fix portability:rse2009-04-121-3/+6
| | | | | | | | | | 1. glob_pattern_p is a glibc thing. As we force -D_GNU_SOURCE in the Autoconf stuff, we cannot use this as the check whether glob_pattern_p() exists. Use __GLIBC__ instead. 2. FNM_EXTMATCH is available within RPM because of the local fnmatch() implementation. But FNM_EXTMATCH is not portable enough, because many systems (including BSD) lack it. So, use it conditionally only.
* - poptReadFile: permit NULL if return values are not desired.jbj2009-01-251-6/+11
|
* - jbj: add poptReadFile routine.jbj2009-01-251-55/+51
|
* - jbj: splint fiddles.jbj2009-01-241-57/+85
|
* - trim out escaped newline(s) from file content, other fixesjbj2009-01-241-9/+31
|
* - permit popt alias/exec to include content from a file.jbj2009-01-231-30/+94
|
* - permit glob(3) patterns in appName field of popt alias/exec config.jbj2009-01-231-17/+80
|
* - jbj: rework the glob wrappers into something more useful. portability todo++.jbj2008-12-201-76/+82
|
* - stub in glob(3) wrappers for popt. more useful poptGlob() API next.jbj2008-12-201-43/+97
|
* - add poptInit/poptFini/poptReadConfigFiles/poptSaneFile routines.jbj2008-12-191-0/+112
|
* - jbj: rewrite poptReadConfigFile(), styling for (i.e. my) readbility.jbj2008-12-191-51/+43
|
* - jbj: splint (3.1.2) fiddles.jbj2008-12-181-1/+1
|
* - jbj: study the mess with splint. Sigh, splint is so easily confused ...jbj2008-03-101-2/+1
| | | | | - jbj: rewrite findProgramPath & move to popt.c. Nuke the findme.{c,h} toys. - jbj: use stpcpy several more places (Wayne Davison<wayned@samba.org>).
* - jbj: study the mess with splint, remove annotations where possible.jbj2008-03-091-24/+29
| | | | | | | | - jbj: add -D_GNU_SOURCE for gcc to use __builtin_stpcpy when available. - jbj: add static inline stpcpy for the deprived. - jbj: use stpcpy to eliminate sprintf calls everywhere but popthelp.c - jbj: remove (now unneeded afaik) va_copy() from POPT_fprintf(). - jbj: inline strdup_fprintf() => POPT_fprintf keeping (unneeded?) va_copy.
* - jbj: test for <glob.h>, disable reading directory poptrc files if not.jbj2008-03-081-2/+7
| | | | | - jbj: add __attribute__(__unused__) (Wayne Davidson<wayned@samba.org>). - jbj: permit equal after short option (Wayne Davidson<wayned@samba.org>).
* - splint fiddles.jbj2008-02-161-4/+6
|
* - jbj: rescuscitate the splint annotations.jbj2007-11-041-7/+17
|
* - jbj: remove splint bounds/branch annotations, little gain, much pain.jbj2007-11-041-4/+0
| | | | - jbj: revert alloca usage again again.
* - jbj: handle Solaris signed character isspace(3) issues consistently.jbj2007-11-031-7/+7
|
* - bero: read /etc/popt.d/* files.jbj2007-10-061-0/+23
|
* - don't read /etc/popt twice (#290531).jbj2007-09-141-3/+7
|
* Before attempting to read the hard-coded /etc/popt file try to read inrse2007-07-021-0/+3
| | | | the installation-prefix-aware <sysconfdir>/popt, please.
* POPT still used alloca(3), a usually machine-, compiler-, andrse2007-06-141-7/+14
| | | | | | | | | | | system-dependent and especially non-POSIX (and hence less portable) function whose use is even discouraged on lots of Unix platforms. This IMHO is unnecessarily unportable for a reusable library like POPT. So, for maximum portability, replace all uses of alloca(3) with either standard POSIX malloc(3) and calloc(3) calls, by plain stack based variable declarations or by entirely avoiding the need for an extra buffer (as in the use of the internal findOption() function).
* Bring in rpm.org changes to HEAD.jbj2007-05-251-8/+8
|
* splint fiddles.jbj2003-04-301-15/+7
|
* Update popt internal copyright messages.jbj2002-08-221-1/+1
|
* - popt: mingw32 portability configure check (#67911).jbj2002-07-131-1/+4
|
* Factor bounds checking annotations into source code.jbj2002-06-221-0/+4
|
* - missing key(s) on keyring when verifying a signature is now an error.jbj2002-01-181-0/+2
| | | | | - remove dependency whiteout. - splint fiddles.
* - lclint-3.0.0.19 fiddles.jbj2001-12-081-1/+2
|
* Converging on lclint-3.0.17 strict level.jbj2001-10-171-0/+4
|