diff options
author | peter <peter@FreeBSD.org> | 2001-07-14 00:03:05 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-07-14 00:03:05 +0000 |
commit | 6bf91f4b277c19b908c3c03d00971b98c5113b92 (patch) | |
tree | daf3c466a0567cd23c6bc576c21ae67f8d8c2a36 /usr.sbin | |
parent | 97ee71fc57e8f081f39083459a5af866bb5d4773 (diff) | |
download | FreeBSD-src-6bf91f4b277c19b908c3c03d00971b98c5113b92.zip FreeBSD-src-6bf91f4b277c19b908c3c03d00971b98c5113b92.tar.gz |
Remove the old machine symlink first.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/config/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c index 2e52846..e6e3eb0 100644 --- a/usr.sbin/config/main.c +++ b/usr.sbin/config/main.c @@ -97,6 +97,7 @@ main(int argc, char **argv) struct stat buf; int ch, len; char *p; + char xxx[MAXPATHLEN]; while ((ch = getopt(argc, argv, "d:gp")) != -1) switch (ch) { @@ -156,15 +157,13 @@ main(int argc, char **argv) * for "sys" (to make genassym.c work along with #include <sys/xxx>) * and similarly for "machine". */ - { - char xxx[MAXPATHLEN]; if (*srcdir == '\0') (void)snprintf(xxx, sizeof(xxx), "../../include"); else (void)snprintf(xxx, sizeof(xxx), "%s/%s/include", srcdir, machinename); + (void) unlink(path("machine")); (void) symlink(xxx, path("machine")); - } options(); /* make options .h files */ makefile(); /* build Makefile */ headers(); /* make a lot of .h files */ |