aluzzardi / pam_usb

Hardware authentication for Linux using ordinary USB Flash Drives.
GNU General Public License v2.0
151 stars 82 forks source link

tools/pamusb-conf: tighten --add-device logic #30

Closed cdituri closed 8 years ago

cdituri commented 8 years ago

Prevent pamusb-conf from creating a new device when that new device collides with an existing node in the pam_usb configuration file.


Hit issue #14 and, after fixing per the comments, dug into the source and noticed that pamusb-conf will happily add colliding entries with --add-device=<name>. This patch prevents those collisions from happening.

aluzzardi commented 8 years ago

@cdituri Thanks!