Two-lines patch for glob handling in /etc/pmount.allow

Bug #80359 reported by Mantas Kriaučiūnas
2
Affects Status Importance Assigned to Milestone
pmount
Fix Released
Undecided
Vincent Fourmond
pmount (Baltix)
Fix Released
Medium
Mantas Kriaučiūnas
pmount (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In pmount TODO file there is a line "add glob support to pmount.allow"

Few months ago I added glob support and sent 2 lines patch to Martin Pitt through IRC, but it seems he forgot to apply it...

So, now I'm attaching 2 lines patch for glob handling in /etc/pmount.allow to this bugreport ;)

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

When you apply glob handling in /etc/pmount.allow patch then please change line "add glob support to pmount.allow" in TODO file with

"add allowing [ and ] characters in pmount.allow glob support"
;)

My patch simply changes "if( !strcmp(d, device) )" with
if( !fnmatch(d, device, FNM_PATHNAME) )

Changed in pmount:
assignee: nobody → mantas
importance: Undecided → Medium
status: Unconfirmed → Fix Committed
Changed in pmount:
assignee: nobody → fourmond
Revision history for this message
Vincent Fourmond (fourmond) wrote :

This is fixed in version 0.9.16 of pmount which has been released few minutes ago.

Changed in pmount:
status: New → Fix Released
Revision history for this message
Vincent Fourmond (fourmond) wrote :

Released in debian few minutes ago, please wait that Ubuntu synchronises to 0.9.16

Changed in pmount:
status: New → Fix Released
Przemek K. (azrael)
Changed in pmount (Baltix):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.