Bug 245181

Summary: config doesn't allow paths with spaces
Product: Red Hat Enterprise Linux 5 Reporter: Ted X Toth <txtoth>
Component: pamAssignee: Tomas Mraz <tmraz>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: low    
Version: 5.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-04 14:17:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch none

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.