-@@ -546,7 +552,9 @@
- linksize = readlink(fn_old, linkname, stab->st_size + 1);
- if (linksize < 0)
- ohshite(_("unable to read link '%.255s'"), fn_old);
-- else if (linksize != stab->st_size)
-+ else if (linksize > stab->st_size)
-+ /* Termux patch: In some cases st_size is too large, ignore that.
-+ See https://github.com/corbinlc/GNURootDebian/issues/103 */
- ohshit(_("symbolic link '%.250s' size has changed from %jd to %zd"),
- fn_old, (intmax_t)stab->st_size, linksize);
- linkname[linksize] = '\0';
-@@ -1033,19 +1041,28 @@
- r = readlink(fnamevb.buf, symlinkfn.buf, symlinkfn.size);
- if (r < 0)
- ohshite(_("unable to read link '%.255s'"), ti->name);
-- else if (r != stab.st_size)
-+ else if (r > stab.st_size)
-+ /* Termux patch: In some cases st_size is too large, ignore that.
-+ See https://github.com/corbinlc/GNURootDebian/issues/103 */
- ohshit(_("symbolic link '%.250s' size has changed from %jd to %zd"),
- fnamevb.buf, (intmax_t)stab.st_size, r);
- varbuf_trunc(&symlinkfn, r);