From: Lukas Wagner <l.wagner@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager] priv daemon: create jobstate directory after the state dir
Date: Mon, 1 Dec 2025 10:19:35 +0100 [thread overview]
Message-ID: <20251201091935.69446-1-l.wagner@proxmox.com> (raw)
The jobstate directory is located *within* the state directory, so it
makes sense to change the order of operations such that the state
directory is actually created before the jobstate dir. This ensures that
the permissions on the state dir are set as expected.
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
---
server/src/bin/proxmox-datacenter-privileged-api.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/server/src/bin/proxmox-datacenter-privileged-api.rs b/server/src/bin/proxmox-datacenter-privileged-api.rs
index 9b0a037b..93ad810a 100644
--- a/server/src/bin/proxmox-datacenter-privileged-api.rs
+++ b/server/src/bin/proxmox-datacenter-privileged-api.rs
@@ -63,7 +63,6 @@ fn create_directories() -> Result<(), Error> {
let api_user = pdm_config::api_user()?;
pdm_config::setup::create_configdir()?;
- server::jobstate::create_jobstate_dir()?;
pdm_config::setup::mkdir_perms(
pdm_buildcfg::PDM_RUN_DIR,
@@ -100,6 +99,8 @@ fn create_directories() -> Result<(), Error> {
0o755,
)?;
+ server::jobstate::create_jobstate_dir()?;
+
Ok(())
}
--
2.47.3
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
next reply other threads:[~2025-12-01 9:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-01 9:19 Lukas Wagner [this message]
2025-12-02 0:03 ` [pdm-devel] applied: " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251201091935.69446-1-l.wagner@proxmox.com \
--to=l.wagner@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.