#548 INI add error code to designate the situation when the parsing returned with warnings
Closed: Fixed Opened by dpal.

- If the parsing is done in the INI_STOP_ON_ANY mode return:
    - success (EOK) if the operation completed with no errors and no warnings,[[BR]]Error list should be NULL (even if storage is passed in).
    - EIO (as now) in case an error was detected.[[BR]]Error list will contain one error (if storage is passed in).
    - EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error)[[BR]]Error list will contain one warning (if storage is passed in).
- If the parsing is done in the INI_STOP_ON_NONE mode return:
    - success (EOK) if the operation completed with no errors and no warnings.[[BR]]Error list should be NULL (even if storage is passed in).
    - EIO (as now) in case an error was detected.[[BR]]Error list will contain at least one error and zero or more warnings (if storage is passed in).
    - EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error).[[BR]]Error list will contain at least one warning (if storage is passed in).
- If the parsing is done in the INI_STOP_ON_ERROR mode return:
    - success (EOK) if the operation completed with no errors and no warnings.[[BR]]Error list should be NULL (even if storage is passed in).
    - EIO (as now) in case an error was detected.[[BR]]Error list will contain one error and zero or more warnings (if storage is passed in).
    - EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error).[[BR]]Error list will contain at least one warning (if storage is passed in).

Note: function returns EINVAL to indicate invalid arguments.


Fields changed

description:
* If the parsing is done in the INI_STOP_ON_ANY mode return:
** success (EOK) if the operation completed with no errors and no warnings,
Error list should be NULL (even if storage is passed in).
** EIO (as now) in case an error was detected
Error list will contain one error (if storage is passed in).
** EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error)
Error list will contain one warning (if storage is passed in).

  • If the parsing is done in the INI_STOP_ON_NONE mode return:
    ** success (EOK) if the operation completed with no errors and no warnings,
    Error list should be NULL (even if storage is passed in).
    ** EIO (as now) in case an error was detected
    Error list will contain at least one error and zero or more warnings (if storage is passed in).
    ** EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error)
    Error list will contain at least one warning (if storage is passed in).

  • If the parsing is done in the INI_STOP_ON_ERROR mode return:
    ** success (EOK) if the operation completed with no errors and no warnings,
    Error list should be NULL (even if storage is passed in).
    ** EIO (as now) in case an error was detected
    Error list will contain one error and zero or more warnings (if storage is passed in).
    ** EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error)
    Error list will contain at least one warning (if storage is passed in).

Note: function returns EINVAL to indicate invalid arguments.

=>
* If the parsing is done in the INI_STOP_ON_ANY mode return:
* success (EOK) if the operation completed with no errors and no warnings,[[BR]]Error list should be NULL (even if storage is passed in).
* EIO (as now) in case an error was detected.[[BR]]Error list will contain one error (if storage is passed in).
* EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error)[[BR]]Error list will contain one warning (if storage is passed in).

  • If the parsing is done in the INI_STOP_ON_NONE mode return:
  • success (EOK) if the operation completed with no errors and no warnings.[[BR]]Error list should be NULL (even if storage is passed in).
  • EIO (as now) in case an error was detected.[[BR]]Error list will contain at least one error and zero or more warnings (if storage is passed in).
  • EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error).[[BR]]Error list will contain at least one warning (if storage is passed in).

  • If the parsing is done in the INI_STOP_ON_ERROR mode return:

  • success (EOK) if the operation completed with no errors and no warnings.[[BR]]Error list should be NULL (even if storage is passed in).
  • EIO (as now) in case an error was detected.[[BR]]Error list will contain one error and zero or more warnings (if storage is passed in).
  • EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error).[[BR]]Error list will contain at least one warning (if storage is passed in).

Note: function returns EINVAL to indicate invalid arguments.

Fields changed

description:
* If the parsing is done in the INI_STOP_ON_ANY mode return:
** success (EOK) if the operation completed with no errors and no warnings,
Error list should be NULL (even if storage is passed in).
** EIO (as now) in case an error was detected
Error list will contain one error (if storage is passed in).
** EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error)
Error list will contain one warning (if storage is passed in).

  • If the parsing is done in the INI_STOP_ON_NONE mode return:
    ** success (EOK) if the operation completed with no errors and no warnings,
    Error list should be NULL (even if storage is passed in).
    ** EIO (as now) in case an error was detected
    Error list will contain at least one error and zero or more warnings (if storage is passed in).
    ** EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error)
    Error list will contain at least one warning (if storage is passed in).

  • If the parsing is done in the INI_STOP_ON_ERROR mode return:
    ** success (EOK) if the operation completed with no errors and no warnings,
    Error list should be NULL (even if storage is passed in).
    ** EIO (as now) in case an error was detected
    Error list will contain one error and zero or more warnings (if storage is passed in).
    ** EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error)
    Error list will contain at least one warning (if storage is passed in).

Note: function returns EINVAL to indicate invalid arguments.

=>
* If the parsing is done in the INI_STOP_ON_ANY mode return:
* success (EOK) if the operation completed with no errors and no warnings,[[BR]]Error list should be NULL (even if storage is passed in).
* EIO (as now) in case an error was detected.[[BR]]Error list will contain one error (if storage is passed in).
* EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error)[[BR]]Error list will contain one warning (if storage is passed in).

  • If the parsing is done in the INI_STOP_ON_NONE mode return:
  • success (EOK) if the operation completed with no errors and no warnings.[[BR]]Error list should be NULL (even if storage is passed in).
  • EIO (as now) in case an error was detected.[[BR]]Error list will contain at least one error and zero or more warnings (if storage is passed in).
  • EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error).[[BR]]Error list will contain at least one warning (if storage is passed in).

  • If the parsing is done in the INI_STOP_ON_ERROR mode return:

  • success (EOK) if the operation completed with no errors and no warnings.[[BR]]Error list should be NULL (even if storage is passed in).
  • EIO (as now) in case an error was detected.[[BR]]Error list will contain one error and zero or more warnings (if storage is passed in).
  • EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error).[[BR]]Error list will contain at least one warning (if storage is passed in).

Note: function returns EINVAL to indicate invalid arguments.

Fields changed

description:
* If the parsing is done in the INI_STOP_ON_ANY mode return:
** success (EOK) if the operation completed with no errors and no warnings,
Error list should be NULL (even if storage is passed in).
** EIO (as now) in case an error was detected
Error list will contain one error (if storage is passed in).
** EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error)
Error list will contain one warning (if storage is passed in).

  • If the parsing is done in the INI_STOP_ON_NONE mode return:
    ** success (EOK) if the operation completed with no errors and no warnings,
    Error list should be NULL (even if storage is passed in).
    ** EIO (as now) in case an error was detected
    Error list will contain at least one error and zero or more warnings (if storage is passed in).
    ** EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error)
    Error list will contain at least one warning (if storage is passed in).

  • If the parsing is done in the INI_STOP_ON_ERROR mode return:
    ** success (EOK) if the operation completed with no errors and no warnings,
    Error list should be NULL (even if storage is passed in).
    ** EIO (as now) in case an error was detected
    Error list will contain one error and zero or more warnings (if storage is passed in).
    ** EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error)
    Error list will contain at least one warning (if storage is passed in).

Note: function returns EINVAL to indicate invalid arguments.

=>
* If the parsing is done in the INI_STOP_ON_ANY mode return:
* success (EOK) if the operation completed with no errors and no warnings,[[BR]]Error list should be NULL (even if storage is passed in).
* EIO (as now) in case an error was detected.[[BR]]Error list will contain one error (if storage is passed in).
* EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error)[[BR]]Error list will contain one warning (if storage is passed in).

  • If the parsing is done in the INI_STOP_ON_NONE mode return:
  • success (EOK) if the operation completed with no errors and no warnings.[[BR]]Error list should be NULL (even if storage is passed in).
  • EIO (as now) in case an error was detected.[[BR]]Error list will contain at least one error and zero or more warnings (if storage is passed in).
  • EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error).[[BR]]Error list will contain at least one warning (if storage is passed in).

  • If the parsing is done in the INI_STOP_ON_ERROR mode return:

  • success (EOK) if the operation completed with no errors and no warnings.[[BR]]Error list should be NULL (even if storage is passed in).
  • EIO (as now) in case an error was detected.[[BR]]Error list will contain one error and zero or more warnings (if storage is passed in).
  • EILSEQ Illegal byte sequence (POSIX.1, C99) - in case of warning (recoverable error).[[BR]]Error list will contain at least one warning (if storage is passed in).

Note: function returns EINVAL to indicate invalid arguments.

Fields changed

milestone: SSSD 1.5.0 => SSSD 1.6.0

Fields changed

milestone: SSSD 1.5.0 => SSSD 1.6.0

Fields changed

milestone: SSSD 1.5.0 => SSSD 1.6.0

Fields changed

milestone: SSSD 1.6.0 => Tools 1.0

Fields changed

milestone: SSSD 1.6.0 => Tools 1.0

Fields changed

milestone: SSSD 1.6.0 => Tools 1.0

Fields changed

rhbz: => 0

Fields changed

rhbz: => 0

Fields changed

rhbz: => 0

This functionality is a part of new parser. See ini_parse.c

blockedby: =>
blocking: =>
coverity: =>
feature_milestone: =>
milestone: Tools Backlog => Tools 1.0
patch: => 0

This functionality is a part of new parser. See ini_parse.c

blockedby: =>
blocking: =>
coverity: =>
feature_milestone: =>
milestone: Tools Backlog => Tools 1.0
patch: => 0

This functionality is a part of new parser. See ini_parse.c

blockedby: =>
blocking: =>
coverity: =>
feature_milestone: =>
milestone: Tools Backlog => Tools 1.0
patch: => 0

Fields changed

design: =>
design_review: => 0
fedora_test_page: =>
resolution: => fixed
status: new => closed

Fields changed

design: =>
design_review: => 0
fedora_test_page: =>
resolution: => fixed
status: new => closed

Fields changed

design: =>
design_review: => 0
fedora_test_page: =>
resolution: => fixed
status: new => closed

Metadata Update from @dpal:
- Issue assigned to dpal
- Issue set to the milestone: Tools 1.0

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/1590

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata