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

Negative tv_nsec returned by Solaris 11 stat() #503

Open
six809 opened this issue Jul 4, 2023 · 0 comments
Open

Negative tv_nsec returned by Solaris 11 stat() #503

six809 opened this issue Jul 4, 2023 · 0 comments

Comments

@six809
Copy link

six809 commented Jul 4, 2023

Solaris 11 (possibly only 11.4) stat() can return st_[amc]tim.tv_nsec < 0, which leads to invalid values trying to set time on destination.

Gnulib has a stat_time_normalize() function in stat-time.h that might be useful to sanitise this.

Probably needed in both do_stat() and do_lstat(), though I only needed to bodge do_lstat() to get over my immediate problem.

#504

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

No branches or pull requests

1 participant