Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
slurm.32296
U_12-Swap-chown-for-lchown.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File U_12-Swap-chown-for-lchown.patch of Package slurm.32296
From: Tim Wickberg <tim@schedmd.com> Date: Wed Oct 11 12:45:25 2023 -0600 Subject: [PATCH 12/19]Swap chown() for lchown(). Patch-mainline: Upstream Git-repo: https://github.com/SchedMD/slurm Git-commit: 582d62d11b99be56a6b66f4dce1f0c6af9dfa0bf References: bsc#1216207 Signed-off-by: Egbert Eich <eich@suse.de> Co-authored-by: Alejandro Sanchez <alex@schedmd.com> --- src/plugins/switch/cray_aries/iaa.c | 2 +- src/plugins/switch/cray_aries/util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/switch/cray_aries/iaa.c b/src/plugins/switch/cray_aries/iaa.c index 2a008b3e5c..20ffed6fda 100644 --- a/src/plugins/switch/cray_aries/iaa.c +++ b/src/plugins/switch/cray_aries/iaa.c @@ -65,7 +65,7 @@ int write_iaa_file(stepd_step_rec_t *job, slurm_cray_jobinfo_t *sw_job, } // chown the file to the job user - rc = chown(fname, job->uid, job->gid); + rc = lchown(fname, job->uid, job->gid); if (rc == -1) { CRAY_ERR("chown(%s, %d, %d) failed: %m", fname, (int)job->uid, (int)job->gid); diff --git a/src/plugins/switch/cray_aries/util.c b/src/plugins/switch/cray_aries/util.c index b9ddc8e5de..0f4ebf20c0 100644 --- a/src/plugins/switch/cray_aries/util.c +++ b/src/plugins/switch/cray_aries/util.c @@ -68,7 +68,7 @@ int create_apid_dir(uint64_t apid, uid_t uid, gid_t gid) return SLURM_ERROR; } - rc = chown(apid_dir, uid, gid); + rc = lchown(apid_dir, uid, gid); if (rc) { CRAY_ERR("chown %s, %d, %d failed: %m", apid_dir, (int)uid, (int)gid);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor