summaryrefslogtreecommitdiffstats
path: root/src/home/homework-cifs.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-03-12 08:42:23 +0100
committerMike Yuan <me@yhndnzj.com>2024-03-12 09:42:48 +0100
commit0870fc2404257d47bf99f7d8faadf60516306029 (patch)
tree9f72ef4405ec16b1ac310a6cd4ebe126f95a33e5 /src/home/homework-cifs.c
parentdata-fd-util: some modernization (diff)
downloadsystemd-0870fc2404257d47bf99f7d8faadf60516306029.tar.xz
systemd-0870fc2404257d47bf99f7d8faadf60516306029.zip
data-fd-util: accept size == SIZE_MAX and translate that to strlen
Like what we already do at other places
Diffstat (limited to 'src/home/homework-cifs.c')
-rw-r--r--src/home/homework-cifs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homework-cifs.c b/src/home/homework-cifs.c
index 5d8713111e..bb95741eb6 100644
--- a/src/home/homework-cifs.c
+++ b/src/home/homework-cifs.c
@@ -76,7 +76,7 @@ int home_setup_cifs(
pid_t mount_pid;
int exit_status;
- passwd_fd = acquire_data_fd(*pw, strlen(*pw), /* flags= */ 0);
+ passwd_fd = acquire_data_fd(*pw);
if (passwd_fd < 0)
return log_error_errno(passwd_fd, "Failed to create data FD for password: %m");