From: Tobias Deiminger Date: Thu, 7 May 2026 20:47:24 +0000 (+0200) Subject: lib: apply linux specific pid_t format consistently X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=710c4d4f88fa32dfc4c4d1f714e935d8bff6ae00;p=thirdparty%2Fshadow.git lib: apply linux specific pid_t format consistently Also change previously existing linux specific format for pid_t to %d. Signed-off-by: Tobias Deiminger --- diff --git a/lib/user_busy.c b/lib/user_busy.c index aea16b13b..2f21ca099 100644 --- a/lib/user_busy.c +++ b/lib/user_busy.c @@ -216,7 +216,7 @@ static int user_busy_processes (const char *name, uid_t uid) } /* Check if the process is in our chroot */ - stprintf_a(root_path, "/proc/%lu/root", (unsigned long) pid); + stprintf_a(root_path, "/proc/%d/root", pid); if (stat (root_path, &sbroot_process) != 0) { continue; } @@ -236,7 +236,7 @@ static int user_busy_processes (const char *name, uid_t uid) return 1; } - stprintf_a(task_path, "/proc/%lu/task", (unsigned long) pid); + stprintf_a(task_path, "/proc/%d/task", pid); task_dir = opendir (task_path); if (task_dir != NULL) { while (NULL != (ent = readdir(task_dir))) {