Change root user if started with @c --chroot . */
| 1307 | |
| 1308 | /** Change root user if started with @c --chroot . */ |
| 1309 | static void set_root(const char *path) |
| 1310 | { |
| 1311 | #if !defined(__WIN__) |
| 1312 | if (chroot(path) == -1) |
| 1313 | { |
| 1314 | sql_perror("chroot"); |
| 1315 | unireg_abort(1); |
| 1316 | } |
| 1317 | my_setwd("/", MYF(0)); |
| 1318 | #endif |
| 1319 | } |
| 1320 | |
| 1321 | |
| 1322 | #endif /*!EMBEDDED_LIBRARY*/ |
nothing calls this directly
no test coverage detected