copy: Move chattr arguments to full function signatures

These are almost never used, so let's move them to the _full()
functions signatures.
This commit is contained in:
Daan De Meyer
2023-03-21 20:53:09 +01:00
parent f3e03bd04e
commit 7c2f5495e2
15 changed files with 35 additions and 32 deletions
+2 -2
View File
@@ -325,7 +325,7 @@ static int process_locale(void) {
if (arg_copy_locale && arg_root) {
(void) mkdir_parents(etc_localeconf, 0755);
r = copy_file("/etc/locale.conf", etc_localeconf, 0, 0644, 0, 0, COPY_REFLINK);
r = copy_file("/etc/locale.conf", etc_localeconf, 0, 0644, COPY_REFLINK);
if (r != -ENOENT) {
if (r < 0)
return log_error_errno(r, "Failed to copy %s: %m", etc_localeconf);
@@ -405,7 +405,7 @@ static int process_keymap(void) {
if (arg_copy_keymap && arg_root) {
(void) mkdir_parents(etc_vconsoleconf, 0755);
r = copy_file("/etc/vconsole.conf", etc_vconsoleconf, 0, 0644, 0, 0, COPY_REFLINK);
r = copy_file("/etc/vconsole.conf", etc_vconsoleconf, 0, 0644, COPY_REFLINK);
if (r != -ENOENT) {
if (r < 0)
return log_error_errno(r, "Failed to copy %s: %m", etc_vconsoleconf);