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

cleanup code + fix typo #22

Merged
merged 2 commits into from Jul 22, 2017
Merged

cleanup code + fix typo #22

merged 2 commits into from Jul 22, 2017

Conversation

bmwiedemann
Copy link
Contributor

@bmwiedemann bmwiedemann commented Jul 20, 2017

one trivial cleanup commit
and one typo fix

See commit messages for details.

we do not need to close file descriptors before exit
because exit does that for us

if (dirp == NULL)
if (n == -1)
{
printf("%s: Directory does not exist or is not accessable\n", dirName);
Copy link

Choose a reason for hiding this comment

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

accessible

@bmwiedemann
Copy link
Contributor Author

btw. man page says scandir() is available since 4.3BSD, POSIX.1-2008
so if you want to support old/other systems, it would need to be solved differently

@riksweeney
Copy link
Owner

I'm not sure what this does? Is there a bug in the packing code?

@polluks
Copy link

polluks commented Jul 20, 2017

It's ok, POSIX is the lowest common divisor. But Windows...

Sent from my Samsung SM-A520F using FastHub

@polluks
Copy link

polluks commented Jul 20, 2017

@riksweeney not a bug, right now paks do not differ of the order of their files anymore.

Sent from my Samsung SM-A520F using FastHub

@riksweeney
Copy link
Owner

OK. I just tried the updated code and the Windows version now fails to compile.

@polluks
Copy link

polluks commented Jul 21, 2017

@bmwiedemann
Copy link
Contributor Author

I guess the alternative approach would be to leave this code as is and make it build+install+work with NO_PAK=1
which makes it more like normal Linux packages anyway.

@riksweeney
Copy link
Owner

That's a better idea.

@bmwiedemann
Copy link
Contributor Author

re-using this PR for the code cleanup and typo fix and #23 for the makefile improvement

@bmwiedemann bmwiedemann changed the title make builds reproducible cleanup code + fix typo Jul 21, 2017
@riksweeney riksweeney merged commit de8c40a into riksweeney:master Jul 22, 2017
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

3 participants