bareos: master 4d5f0c12
Author | Committer | Branch | Timestamp | Parent | |
---|---|---|---|---|---|
Alaa Eddine Elamri | Alaa Eddine Elamri | master | 2021-11-12 11:34 | master d20ef990 | Pending |
Changeset | lib: show windows error codes along with unix errors on windows The errors would not use the necessary windows code when `b_errno_win32` is not set. And so, the program automatically tries to search for a Linux interpretation of the error code, which would lead to a wrong/non-existant message for that error code. Windows and Linux error codes are different and only have a few common error codes like `0` for `success` or error `2` for `no such file a directory`. This change makes sure that, when in doubt, just show both messages and let the user interpret the error code provided. |
||||
mod - core/src/lib/berrno.cc | Diff File | ||||
mod - core/src/lib/berrno.h | Diff File |