Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move resolve_tilde and get_config_path into libi3 #1600

Merged
merged 1 commit into from Mar 29, 2015
Merged

Conversation

Deiz
Copy link
Contributor

@Deiz Deiz commented Mar 28, 2015

This is groundwork for a reworked version of #1588.

I pulled the "Unable to find the configuration file" die() call out of get_config_path because it seems bad to have that function return NULL on error in one instance, yet call die() in another.

if (res == GLOB_NOMATCH || globbuf.gl_pathc != 1)
result = sstrdup(path);
else if (res != 0) {
err(1, "glob() failed");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/1/EXIT_FAILURE/

@stapelberg
Copy link
Member

Looks good overall.

@stapelberg stapelberg added the waiting Waiting for feedback/changes from the author of the issue/PR. Make sure to notify us with a comment. label Mar 29, 2015
@Deiz
Copy link
Contributor Author

Deiz commented Mar 29, 2015

Fixed and rebased on next.

stapelberg added a commit that referenced this pull request Mar 29, 2015
Move resolve_tilde and get_config_path into libi3
@stapelberg stapelberg merged commit 3191be3 into i3:next Mar 29, 2015
@Deiz Deiz deleted the libi3 branch April 25, 2015 00:04
@orestisfl orestisfl removed the waiting Waiting for feedback/changes from the author of the issue/PR. Make sure to notify us with a comment. label Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants