Skip to content
This repository was archived by the owner on Jan 20, 2020. It is now read-only.

expand ~ in paths to the users home directory#4

Open
JustinAzoff wants to merge 2 commits into
azer:masterfrom
JustinAzoff:userfix
Open

expand ~ in paths to the users home directory#4
JustinAzoff wants to merge 2 commits into
azer:masterfrom
JustinAzoff:userfix

Conversation

@JustinAzoff
Copy link
Copy Markdown
Contributor

If the site uri starts with ~/ then expand it to the users home
directory. ~user style paths aren't implemented as part of this change.

If the site uri starts with ~/ then expand it to the users home
directory.  ~user style paths aren't implemented as part of this change.
@azer
Copy link
Copy Markdown
Owner

azer commented Jul 28, 2013

thank you! would this work with https://github.com/azer/boxcars/blob/master/secure.go#L16 ?

Change the uid/gid before reading the configuration.
This makes the ~/ path expansion use the specified users home directory.
@JustinAzoff
Copy link
Copy Markdown
Contributor Author

It should with that change :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants