Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fdm doesn't exit with error code #141

Open
rickysarraf opened this issue Apr 16, 2024 · 1 comment
Open

fdm doesn't exit with error code #141

rickysarraf opened this issue Apr 16, 2024 · 1 comment

Comments

@rickysarraf
Copy link

I looked for the obvious answers but couldn't find one. Neither does the man page says anything about error.

Version of fdm installed is:

fdm:
  Installed: 1.9+git20181219-1.1
  Candidate: 1.9+git20181219-1.1
  Version table:
     1.9+git20181219-1.1+b1 500
        500 http://deb.debian.org/debian unstable/main amd64 Packages
 *** 1.9+git20181219-1.1 990
        990 http://deb.debian.org/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status
     1.9+git20181219-1+b2 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
     1.9+git20181219-1+b1 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
     1.9+git20181219-1 500
        500 http://deb.debian.org/debian buster/main amd64 Packages

When run, fdm never errors out with an error exit code.

fdm -m -a priya fetch || echo "Error"
priya: Name or service not known
priya: fetching error. aborted
priya: 0 messages processed in 0.001 seconds
@sambaccessnow
Copy link

same,

I have a configuration where I change the password to test if fdm failure.
My surprise when I see FDM failing, but the exit code is zero

root@host::~# sudo -u fdm /usr/bin/fdm -f /etc/fdm.conf fetch -q
[email protected]: unexpected data: 2 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
[email protected]: fetching error. aborted

root@host::~# echo $?
0

FDM is not processing the log failure, is it possible to sue the correct exit code ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants