Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#93 disks by symlink are not detected as mounted

pam_mount
open
pam_mount (94)
5
2011-05-01
2011-05-01
Markus
No

When disks are mounted by a symlink (e.g. something in /dev/disk/by-id/) pam_mount fails to detect if they are already mounted. If it then tries to mount an already mounted drive again, it may wake up a sleeping devices and delay the login unnecessarily.

The attached patch fixes the problem. I am not sure about any side effects, but it works for me.

Discussion

  • Markus
    Markus
    2011-05-01

    when testing for mounted devices, also resolve the path