Skip to content

Conversation

@DerDakon
Copy link
Member

@DerDakon DerDakon commented Jul 4, 2022

This has been split out of #65. The commit about headers for umask() has been omitted as mode_t is not used, so <sys/types.h> isn't actually needed anywhere for this.

Copy link
Contributor

@mbhangui mbhangui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@schmonz
Copy link
Member

schmonz commented Oct 13, 2022

Is there a particular compiler warning level you're using to make these pop out? Something we could include in one of the autobuilds?

Copy link
Member

@schmonz schmonz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a different situation I might want to block this on having our autobuilds auto-detect popular merge conflicts. Right now it's more important to me that we start moving again. Thank you for the impetus.

#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general this change is of course correct and needed, and as usual I'm mildly worried only about the timing of the change in programs which many users are likely to still be heavily patching: this one and smtpd, mainly.

@schmonz gonna schmonz ;-) (and seriously, it's nice to be back here thinking about notqmail, so thank you) -- but I would love to be able to feel that this sort of thing is getting worried about automatically. Then I could find new kinds of things to be mildly annoying about. @josuah, how can we help finish getting the patch-merge-checker into our regular autobuilds?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this a bit older: no, I don't think so. At least I can't provoke a warning on my system, most likely because (at least today, maybe not when these patches were originally done) these headers are in one or another indirect way automatically included. So for now I would call it "manual code audit", even if it was not true back then it would be true if I had to do them again.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@schmonz I need to update #225 as discussed by @DerDakon and we can merge it.

@DerDakon DerDakon merged commit b0bba51 into master Oct 13, 2022
@DerDakon DerDakon deleted the Dakon-missing-headers branch October 13, 2022 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants