diff options
author | jkh <jkh@FreeBSD.org> | 1993-06-25 00:13:53 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1993-06-25 00:13:53 +0000 |
commit | 697d2a5b209cb7bc40795bc2acfa093b7e8c4384 (patch) | |
tree | c26b576c01ab3a64cacaa05ca2b80e53ab70a478 /gnu/usr.bin/cvs | |
parent | 683ac3d3410e3ecb52fd0a808354d430475c4852 (diff) | |
download | FreeBSD-src-697d2a5b209cb7bc40795bc2acfa093b7e8c4384.zip FreeBSD-src-697d2a5b209cb7bc40795bc2acfa093b7e8c4384.tar.gz |
One small change to make the code clearer in update.
Diffstat (limited to 'gnu/usr.bin/cvs')
-rw-r--r-- | gnu/usr.bin/cvs/cvs/update.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/cvs/cvs/update.c b/gnu/usr.bin/cvs/cvs/update.c index deb7404..c25bc75 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; } |