]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Rename spawn-polkit-agent.c to just polkit-agent.c
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 26 Jun 2024 10:07:36 +0000 (12:07 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 26 Jun 2024 13:04:06 +0000 (15:04 +0200)
The functions in the file were *not* using the spawn prefix,
and the prefix seems completely unnecessary.

15 files changed:
src/home/homectl.c
src/hostname/hostnamectl.c
src/import/importctl.c
src/locale/localectl.c
src/login/loginctl.c
src/machine/machinectl.c
src/mount/mount-tool.c
src/portable/portablectl.c
src/run/run.c
src/shared/main-func.h
src/shared/meson.build
src/shared/polkit-agent.c [moved from src/shared/spawn-polkit-agent.c with 98% similarity]
src/shared/polkit-agent.h [moved from src/shared/spawn-polkit-agent.h with 100% similarity]
src/systemctl/systemctl-util.c
src/timedate/timedatectl.c

index f2a04d5a0ce1f476985d4dc24754057ce2e6525f..25e942bd94de1bad6761fa0f1969f3e2f65fd0d9 100644 (file)
 #include "path-util.h"
 #include "percent-util.h"
 #include "pkcs11-util.h"
+#include "polkit-agent.h"
 #include "pretty-print.h"
 #include "proc-cmdline.h"
 #include "process-util.h"
 #include "recurse-dir.h"
 #include "rlimit-util.h"
 #include "rm-rf.h"
-#include "spawn-polkit-agent.h"
 #include "terminal-util.h"
 #include "tmpfile-util.h"
 #include "uid-classification.h"
index 83e53a45607bee35cc7620bba502e23edd309d00..157ac769cab6f93630a228bd3fa490878757a2a0 100644 (file)
@@ -23,9 +23,9 @@
 #include "hostname-util.h"
 #include "main-func.h"
 #include "parse-argument.h"
+#include "polkit-agent.h"
 #include "pretty-print.h"
 #include "socket-util.h"
-#include "spawn-polkit-agent.h"
 #include "terminal-util.h"
 #include "verbs.h"
 
index d81e79e3cdb9f3ea86c8f66e0d0dc01f1ce42e2a..3334f37b946fec5cd9fa68a5c5113affc3beb99e 100644 (file)
 #include "parse-argument.h"
 #include "parse-util.h"
 #include "path-util.h"
+#include "polkit-agent.h"
 #include "pretty-print.h"
 #include "signal-util.h"
 #include "sort-util.h"
-#include "spawn-polkit-agent.h"
 #include "string-table.h"
 #include "verbs.h"
 #include "web-util.h"
index 9a2163bcfef3b42b07875e50675b804f9cefdda5..5b00820e5a575745067668288caf42b0279819d6 100644 (file)
 #include "main-func.h"
 #include "memory-util.h"
 #include "pager.h"
+#include "polkit-agent.h"
 #include "pretty-print.h"
 #include "proc-cmdline.h"
 #include "set.h"
-#include "spawn-polkit-agent.h"
 #include "strv.h"
 #include "terminal-util.h"
 #include "verbs.h"
index 36421da0ad2eb7b9b558b917c3a79733befbc2b0..7ca07c4efe1cbc234f7e8b6694679edcefdc393f 100644 (file)
 #include "pager.h"
 #include "parse-argument.h"
 #include "parse-util.h"
+#include "polkit-agent.h"
 #include "pretty-print.h"
 #include "process-util.h"
 #include "rlimit-util.h"
 #include "sigbus.h"
 #include "signal-util.h"
-#include "spawn-polkit-agent.h"
 #include "string-table.h"
 #include "strv.h"
 #include "sysfs-show.h"
index 5572115a547b534123333da6d95af4cd1af1593f..f49927ae85448337d797c8e3ce867ad017525786 100644 (file)
@@ -47,6 +47,7 @@
 #include "parse-argument.h"
 #include "parse-util.h"
 #include "path-util.h"
+#include "polkit-agent.h"
 #include "pretty-print.h"
 #include "process-util.h"
 #include "ptyfwd.h"
@@ -55,7 +56,6 @@
 #include "signal-util.h"
 #include "sort-util.h"
 #include "spawn-ask-password-agent.h"
-#include "spawn-polkit-agent.h"
 #include "stdio-util.h"
 #include "string-table.h"
 #include "strv.h"
index fcebdcaf18c9bcc862e6e971c3dfa371480fd83e..8ac08e95b8dd02335efb129329ad200fdc6c9cd0 100644 (file)
 #include "parse-argument.h"
 #include "parse-util.h"
 #include "path-util.h"
+#include "polkit-agent.h"
 #include "pretty-print.h"
 #include "process-util.h"
 #include "sort-util.h"
-#include "spawn-polkit-agent.h"
 #include "stat-util.h"
 #include "strv.h"
 #include "terminal-util.h"
index 57b930d6cba41be833bc6642ffdb5fa36fa3e4df..e4eb437b2ec29957a713dcfc95806273fedbdd49 100644 (file)
@@ -26,9 +26,9 @@
 #include "parse-argument.h"
 #include "parse-util.h"
 #include "path-util.h"
+#include "polkit-agent.h"
 #include "portable.h"
 #include "pretty-print.h"
-#include "spawn-polkit-agent.h"
 #include "string-util.h"
 #include "strv.h"
 #include "terminal-util.h"
index 5779403b9c5723f0cb03dd55ddffc4a7628b95d8..975b8ddf17bf643e35ed268de044883b42cc750b 100644 (file)
 #include "parse-argument.h"
 #include "parse-util.h"
 #include "path-util.h"
+#include "polkit-agent.h"
 #include "pretty-print.h"
 #include "process-util.h"
 #include "ptyfwd.h"
 #include "signal-util.h"
-#include "spawn-polkit-agent.h"
 #include "special.h"
 #include "strv.h"
 #include "terminal-util.h"
index d0689b42d9cae934c955223c35ddf0e6cda916f1..0dd0821ea6fef3310022f7747195afaf0170aff3 100644 (file)
 #include "argv-util.h"
 #include "hashmap.h"
 #include "pager.h"
+#include "polkit-agent.h"
 #include "selinux-util.h"
 #include "signal-util.h"
 #include "spawn-ask-password-agent.h"
-#include "spawn-polkit-agent.h"
 #include "static-destruct.h"
 
 #define _DEFINE_MAIN_FUNCTION(intro, impl, result_to_exit_status, result_to_return_value) \
index 46679c1adabcf9855dfde1ee3ae000e75b5c45bf..1385172fe8f512fb91a14bfc259408a8fcaf2598 100644 (file)
@@ -140,6 +140,7 @@ shared_sources = files(
         'pe-binary.c',
         'pkcs11-util.c',
         'plymouth-util.c',
+        'polkit-agent.c',
         'pretty-print.c',
         'capsule-util.c',
         'ptyfwd.c',
@@ -160,7 +161,6 @@ shared_sources = files(
         'socket-label.c',
         'socket-netlink.c',
         'spawn-ask-password-agent.c',
-        'spawn-polkit-agent.c',
         'specifier.c',
         'switch-root.c',
         'tmpfile-util-label.c',
similarity index 98%
rename from src/shared/spawn-polkit-agent.c
rename to src/shared/polkit-agent.c
index ce3c5fb948646490733513c6240d7b51980cad0a..a891246156da80f1f7b4a862fea965cb5a6010e3 100644 (file)
@@ -11,8 +11,8 @@
 #include "io-util.h"
 #include "log.h"
 #include "macro.h"
+#include "polkit-agent.h"
 #include "process-util.h"
-#include "spawn-polkit-agent.h"
 #include "stdio-util.h"
 #include "time-util.h"
 
index be3b35e6f9da8f7fc982e0512fea93a11996d2b0..8e665d601536dd9a07a78b68698edf3f8f62bbf3 100644 (file)
 #include "macro.h"
 #include "path-util.h"
 #include "pidref.h"
+#include "polkit-agent.h"
 #include "process-util.h"
 #include "reboot-util.h"
 #include "set.h"
 #include "spawn-ask-password-agent.h"
-#include "spawn-polkit-agent.h"
 #include "stat-util.h"
 #include "systemctl-util.h"
 #include "systemctl.h"
index 46ec6b31bc46aec90bb944a2b6ab712d70a546a9..2e19b28a6d511f6a0db3f9f259a585e8a77e95c0 100644 (file)
@@ -19,9 +19,9 @@
 #include "main-func.h"
 #include "pager.h"
 #include "parse-util.h"
+#include "polkit-agent.h"
 #include "pretty-print.h"
 #include "sparse-endian.h"
-#include "spawn-polkit-agent.h"
 #include "string-table.h"
 #include "strv.h"
 #include "terminal-util.h"