| 166 | } |
| 167 | |
| 168 | void create_protected_file (const char* path) |
| 169 | { |
| 170 | int fd = open(path, O_WRONLY | O_CREAT, 0600); |
| 171 | if (fd == -1) { |
| 172 | throw System_error("open", path, errno); |
| 173 | } |
| 174 | close(fd); |
| 175 | } |
| 176 | |
| 177 | int util_rename (const char* from, const char* to) |
| 178 | { |
no test coverage detected