| 107 | } |
| 108 | |
| 109 | static bool |
| 110 | parse_ugid(const char *src, int *dest) |
| 111 | { |
| 112 | char *end; |
| 113 | errno = 0; |
| 114 | unsigned long val = strtoul(src, &end, 10); |
| 115 | if (errno || end == src || end && *end) |
| 116 | return false; |
| 117 | if (val > INT_MAX) |
| 118 | return false; |
| 119 | *dest = val; |
| 120 | return true; |
| 121 | } |
| 122 | |
| 123 | static int |
| 124 | find_subid(const char *sub_file, const char *user, int *num_ids) |
no outgoing calls
no test coverage detected
searching dependent graphs…