Bug 7183 - base-passwd replaces content of passwd.master and group.master
Summary: base-passwd replaces content of passwd.master and group.master
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.7
Hardware: All Multiple
: Medium normal
Target Milestone: 1.8
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-01-19 10:42 UTC by Pascal Bach
Modified: 2015-01-30 04:07 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Patch that avoids replacing $ sign variables (1.16 KB, application/octet-stream)
2015-01-19 10:42 UTC, Pascal Bach
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Bach 2015-01-19 10:42:35 UTC
Created attachment 2332 [details]
Patch that avoids replacing $ sign variables

When the passwd.master file contains $ symbol these are interpreted as variables.

This leads to the case if somebody uses passwords of the form "$type$salt$encrypted_password" the whole part before "encrypted_password" gets interpreted as empty variable and thus is no longer there.

The solution would be to use tell the shell not to replace variables inside the file content. See patch for how to do this.