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

Refactored for use of *at-functions instead of snprintf, removed unnecessary loops and added libnotify option #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jaseg
Copy link

@jaseg jaseg commented Jul 13, 2014

I kind of got carried away adding desktop notifications with progress bars to this tool.

The code now uses fstatat, readlinkat and openat to replace worrysome handling of large on-stack buffers with handling of worrysome amounts of fds. Also I removed some unnecessary repeated looping over /proc and an unnecessary intermediate result array. Also, the code is now identifying files by inode number instead of comparing strings. This is simpler and will still work almost always.

If really necessary, I can split this into a proper commit series, however I won't do that before Tuesday.

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.

1 participant