Skip to content

Shell expansion rules say that tilde must be replaced with $HOME before calling getpwuid#1361

Merged
obiltschnig merged 1 commit intopocoproject:developfrom
CosminCremarenco-Murex:tilde-expansion
Aug 27, 2016
Merged

Shell expansion rules say that tilde must be replaced with $HOME before calling getpwuid#1361
obiltschnig merged 1 commit intopocoproject:developfrom
CosminCremarenco-Murex:tilde-expansion

Conversation

@CosminCremarenco-Murex
Copy link
Copy Markdown
Contributor

Foundation test N7CppUnit10TestCallerI8PathTestEE.testExpand fails on our systems because, for some reason, getpwuid(getuid())->pw_dir returns a different string than $HOME.
However, shell expansion rules say that if $HOME is set in the environment then it should be used first. Only if not set it can be replaced with pw_dir.

… exists and only after that we can look at getpwuid
@obiltschnig obiltschnig added this to the Release 1.7.5 milestone Aug 24, 2016
@obiltschnig obiltschnig self-assigned this Aug 24, 2016
@obiltschnig obiltschnig merged commit 63b3e23 into pocoproject:develop Aug 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants