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

Make timezone work on freebsd #1821

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Jan 24, 2024

No description provided.

Copy link
Contributor

openshift-ci bot commented Jan 24, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rhatdan rhatdan force-pushed the freebsd branch 2 times, most recently from 66993eb to 9f6a950 Compare January 29, 2024 11:45
@rhatdan rhatdan changed the title [WIP] Make fimezone work on freebsd Make fimezone work on freebsd Jan 31, 2024
@rhatdan
Copy link
Member Author

rhatdan commented Jan 31, 2024

@dfr @mheon @vrothberg @giuseppe @baude @Luap99 @umohnani8 @nalind @ashley-cui PTAL

The PR for this has been verified on freebsd.

@rhatdan rhatdan changed the title Make fimezone work on freebsd Make timezone work on freebsd Jan 31, 2024
@rhatdan rhatdan added the 5.0 label Jan 31, 2024
@mheon
Copy link
Member

mheon commented Jan 31, 2024

LGTM

)

func openDirectory(path string) (fd int, err error) {
return unix.Open(path, unix.O_RDONLY|unix.O_PATH, 0)
Copy link
Member

Choose a reason for hiding this comment

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

can we add unix.O_CLOEXEC here too?

@dfr
Copy link
Contributor

dfr commented Jan 31, 2024

LGTM. Note: now that FreeBSD 12.4 is EOL, it should be possible to add O_PATH and other nice things (e.g. netlink) to x/sys/unix on FreeBSD which will allow for future simplification here.

@umohnani8
Copy link
Member

LGTM once comments addressed

Timezone code is broken on freebsd. Need to vendor
into Podman to allow better sharing of code.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
@rhatdan rhatdan added the lgtm label Jan 31, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 15f1d56 into containers:main Jan 31, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants