Support cases when /sbin does not exist

This commit is contained in:
topjohnwu
2020-04-18 23:19:19 -07:00
parent d959c35723
commit 4c959cd983
4 changed files with 36 additions and 28 deletions

View File

@@ -105,4 +105,4 @@ void init_argv0(int argc, char **argv);
void set_nice_name(const char *name);
uint32_t binary_gcd(uint32_t u, uint32_t v);
int switch_mnt_ns(int pid);
void gen_rand_str(char *buf, int len, bool varlen = true);
int gen_rand_str(char *buf, int len, bool varlen = true);