Two-lines patch for glob handling in /etc/pmount.allow
Bug #80359 reported by
Mantas Kriaučiūnas
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 ;)
Changed in pmount: | |
assignee: | nobody → fourmond |
Changed in pmount (Baltix): | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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) )