You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
256 B

#include <common.h>
int main(int argc, char **argv)
{
if (argc != 3)
errx(-1, "%s <old filename> <new filename>\n", argv[0]);
char *old = argv[1];
char *new = argv[2];
int ret;
if ((ret = rename(old, new)) < 0)
err(ret, "rename");
return 0;
}