Skip to content

Commit 0158000

Browse files
oopsbagelDuncaen
authored andcommitted
bin/xbps-fetch: fix unreachable fetch result code
This commit restores the formerly unreachable code path handling the case where the local file is identical with the remote file. Fixes bug introduced in 66f84a8
1 parent c08542c commit 0158000

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/xbps-fetch/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ main(int argc, char **argv)
166166
progname, argv[i], xbps_fetch_error_string());
167167
failure = true;
168168
continue;
169-
} else if (rv == -1) {
169+
} else if (rv == 0) {
170170
fprintf(stderr, "%s: file is identical with remote.\n", argv[i]);
171171
if (shasum) {
172172
if (!xbps_file_sha256_raw(digest, sizeof digest, filename)) {

0 commit comments

Comments
 (0)