From 372f57fadfa1c9e4fd655d728f9e2dfe327abe9c Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Fri, 25 Jun 1993 00:13:53 +0000 Subject: [PATCH] One small change to make the code clearer in update. --- gnu/usr.bin/cvs/cvs/update.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/usr.bin/cvs/cvs/update.c b/gnu/usr.bin/cvs/cvs/update.c index deb74046e8d..c25bc757f54 100644 --- a/gnu/usr.bin/cvs/cvs/update.c +++ b/gnu/usr.bin/cvs/cvs/update.c @@ -435,15 +435,15 @@ update_filesdone_proc (err, repository, update_dir) char from[PATH_MAX], to[PATH_MAX]; /* Read all the link pairs from the symlinks file */ - while (fgets(from, PATH_MAX, links)) { - fgets(to, PATH_MAX, links); + while (fgets(to, PATH_MAX, links)) { + fgets(from, PATH_MAX, links); /* Strip off the newlines */ to[strlen(to) - 1] = '\0'; from[strlen(from) - 1] = '\0'; /* Do it */ - if (symlink(to, from) == -1) { + if (symlink(from, to) == -1) { error (0, errno, "Unable to create symlink `%s'", to); return 1; }