Add insult option to doas.conf
Change the way insults are enabled
Now they are configured entirely with the configure script.
Will be working on a config file option as well.
Update LICENSE and README
Add basic insult capability
fix some wording in README.md
fixed typo in README.md
Closes: #54 [via git-merge-pr]
Replace build/installation instructions with discouragements
remove pam.d configuration files
pam configuration files are not portable, its the job of the
package maintainer or user who builds opendoas themselves to
configure pam in a safe and usable way.
apply missing man page changes
espie reminds me that EOF can happen for errors as well, so check for that
happening and print a message.
Promote nrules/maxrules to size_t and make sure they can't overflow. reallocarray(3) will fail if nmemb * size would overflow. OK tb@ martijn@
OK kn@ tedu@
Be more explicit by stating that the -n flag is linked to the nopass option in doas.conf instead of a generic "would prompt for password", which could lead people into believing that persist could work with this option.
Feedback and OK kn@
correctly reset path for rules without specific command
This is a fixup for commit 01c658f8c45cb92a343be5f32aa6da70b2032168
where the behaviour was changed to not inherit the PATH variable
after reading a too long line, restart at the beginning of the buffer so
we don't keep writing past the end. (the perils of trying to recover from
noticed by Jan Schreiber
increment the line number after the line continuation; ok tedu
pam: use PAM_REINITIALIZE_CRED
Both work fine, PAM_REINITIALIZE_CRED is the more correct
choice and is required on Solaris, see sudo bug #642;