Skip to content

Conversation

@sgn
Copy link

@sgn sgn commented Jun 14, 2020

This is part of effort to port fakechroot to musl libc in https://github.com/dex4er/fakechroot/compare/master...sgn:musl-port?expand=1

The port isn't usable yet (cp.t is failing).

Those 2 changes should be good with other libc, hence I would like to have them merged first.

sgn added 2 commits June 14, 2020 23:42
While we're at it, fix a use-after-free for abs_filename.
Comment on lines +36 to +37
char fakechroot_abspath[FAKECHROOT_PATH_MAX];
char fakechroot_buf[FAKECHROOT_PATH_MAX];

Choose a reason for hiding this comment

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

What's the point of adding two statically allocated string variables and not using them at all?

Choose a reason for hiding this comment

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

Nevermind, I looked at the expand_chroot_path() macro and it uses these two for the expansion. A non-obvious approach, but I guess we work with what we've got :)

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.

2 participants