Moving to rsyncd.conf from /etc to hermetic-usr pattern.#551
Moving to rsyncd.conf from /etc to hermetic-usr pattern.#551schubi2 wants to merge 1 commit intoRsyncProject:masterfrom
Conversation
a15d1b7 to
50458ab
Compare
tridge
left a comment
There was a problem hiding this comment.
after the fix please describe the testing you have done
| config_file = RSYNCD_SYSCONF; | ||
| #ifdef RSYNCD_DISTCONF | ||
| STRUCT_STAT st; | ||
| if (do_stat(RSYNCD_SYSCONF, &st) != 0) |
There was a problem hiding this comment.
this is odd - do_stat() returns 0 on finding the file. So you are using the file only if it doesn't exist?
There was a problem hiding this comment.
this is odd - do_stat() returns 0 on finding the file. So you are using the file only if it doesn't exist?
Yes, then RSYNCD_DISTCONF will be used. So, how it should be changed ?
Regarding testing: openSUSE is using this patch since Nov 29 12:34:30 UTC 2023 without any problem:
Changelog:
Wed Nov 29 12:34:30 UTC 2023 - Stefan Schubert schubi@suse.com
- Moved rsyncd.conf and rsyncd.secrets to /usr/etc.
There was a problem hiding this comment.
this is odd - do_stat() returns 0 on finding the file. So you are using the file only if it doesn't exist?
Let me try to explain it again:
RSYNCD_DISTCONF = "/usr/etc/rsyncd.conf"
RSYNCD_SYSCONF "/etc/rsyncd.conf"
RSYNCD_DISTCONF comes from the distribution and is included by e.g. a RPM.
RSYNCD_SYSCONF is a user changed file and MUST NOT be overwritten by a package update and has more priority than RSYNCD_DISTCONF.
So if RSYNCD_SYSCONF is not there the default RSYNCD_DISTCONF will be take for parsing.
|
Sorry, I have overseen this PR. Is there still something open here ? |
b1ec4c8 to
dfaa2a7
Compare
In order to fulfill the UAPI Group Specifications regarding configuration files:
https://uapi-group.org/specifications/specs/configuration_files_specification/
we are adapting "main" packages.
Fortunately rsync has already similar way. So only few changes are needed for it :-)