Bug 245181 - config doesn't allow paths with spaces
Summary: config doesn't allow paths with spaces
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: pam
Version: 5.0
Hardware: All
OS: Linux
low
high
Target Milestone: ---
: ---
Assignee: Tomas Mraz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-06-21 14:34 UTC by Ted X Toth
Modified: 2008-04-04 14:17 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-04 14:17:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch (8.97 KB, patch)
2007-06-21 14:34 UTC, Ted X Toth
no flags Details | Diff

Description Ted X Toth 2007-06-21 14:34:28 UTC
Description of problem:
pam_namespace cannot polyinstantiate directories that have spaces in their name.
The configuration file processing code uses strtok_r with delimiters space and
tab. There is no functionality to allow escaping of spaces or quoting of strings
so that paths with spaces can be specified.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
I utilized a small piece of open source code (argv_parse) to parse the config
file lines because I'd basically have to do something like this to fix the code
anyway and this was eaiser.

Comment 1 Ted X Toth 2007-06-21 14:34:28 UTC
Created attachment 157542 [details]
patch

Comment 2 Tomas Mraz 2008-04-04 14:17:29 UTC
This bug is resolved in Linux-PAM 1.0 which will be included in the next release
of Red Hat Enterprise Linux.



Note You need to log in before you can comment on or make changes to this bug.