From 142f80f6634e899615e7a0c16a231c91cdacc42c Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Sun, 17 Nov 2019 19:26:39 +0100 Subject: [PATCH] Making some APIs public. #get_free_id and #get_free_uid become public. --- src/passwd.cr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/passwd.cr b/src/passwd.cr index 1c00c32..2fae9a1 100644 --- a/src/passwd.cr +++ b/src/passwd.cr @@ -115,8 +115,8 @@ class Passwd get_all_groups.map(&.to_csv).join("\n") + "\n" end - private def get_free_uid - uid = 1000 + def get_free_uid(starting_uid = 1000) + uid = starting_uid users = get_all_users @@ -127,8 +127,8 @@ class Passwd uid end - private def get_free_gid - gid = 1000 + def get_free_gid(starting_gid = 1000) + gid = starting_gid users = get_all_users