Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 2168 Build 2177: arc lint + arc unit
Event Timeline
usr.bin/lock/lock.c | ||
---|---|---|
74 | PAM isn't optional in FreeBSD, so there is no need for USE_PAM. | |
144 | PAM is not optional; S/KEY aka OPIE is only supported through PAM. | |
172–191 | You should probably replace this with getpass() or even openpam_ttyconv() (you can either call it directly or use pam_prompt() if you have a PAM handle, which you can get even if you don't intend to use PAM to unlock). | |
258–263 | As mentioned earlier, you can use getpass() or openpam_ttyconv() / pam_prompt() here instead of fgets(). |
usr.bin/lock/lock.c | ||
---|---|---|
172–191 | It's a good idea, but IMHO it's orthogonal to adding PAM support. I'd prefer to do that in a separate patch, especially that it might change the behaviour slightly (getpass() reads from console, the code above reads from standard input; no idea if it could make a practical difference). |
usr.bin/lock/lock.c | ||
---|---|---|
270 | Please use an explicit comparison to 0 as strcmp() is not a predicate. |
usr.bin/lock/lock.c | ||
---|---|---|
270 | Erm, but that's existing code - I'm only removing the "else" clause. |
Approved, but I hope you also find the time to make the other modifications I suggested in a later commit.