aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2013-06-02 18:10:07 +0000
committerEitan Adler <eadler@FreeBSD.org>2013-06-02 18:10:07 +0000
commita96469b791436bd829caebea1f93b1ef7ceb8ba5 (patch)
treeade007481ae373a9079d76a7522f89cfa6df8c71 /usr.bin/fetch
parent08aa7c869f11e7d5f5a9b7e4a5b2a3ce250c05b4 (diff)
downloadsrc-a96469b791436bd829caebea1f93b1ef7ceb8ba5.tar.gz
src-a96469b791436bd829caebea1f93b1ef7ceb8ba5.zip
Correct check to see if file changes.
Reported by: swildner@DragonFlyBSD.org Reviewed by: des
Notes
Notes: svn path=/head/; revision=251262
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c
index d3e9b21a313f..27211b347280 100644
--- a/usr.bin/fetch/fetch.c
+++ b/usr.bin/fetch/fetch.c
@@ -565,7 +565,7 @@ fetch(char *URL, const char *path)
goto failure;
}
if (nsb.st_dev != sb.st_dev ||
- nsb.st_ino != nsb.st_ino ||
+ nsb.st_ino != sb.st_ino ||
nsb.st_size != sb.st_size) {
warnx("%s: file has changed", URL);
fclose(of);