]> Dogcows Code - chaz/tar/commit
tar: port -d to longer symlinks
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jul 2015 16:46:17 +0000 (09:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jul 2015 16:53:56 +0000 (09:53 -0700)
commit3828942550fba1f88136ffbc018a72bdeb930902
tree3208609270898f3cabf494a7ecb6394f7d6ee4cd
parentd95457e0071f26b1e524c754adf211abdd53d0fa
tar: port -d to longer symlinks

* src/compare.c (diff_symlink):
Don't use alloca on symlink length; it might be too big for the stack.
Don't assume that readlinkat's return value fits in 'int'.
Prefer memcmp to strncmp where either will do.
src/compare.c
This page took 0.019235 seconds and 4 git commands to generate.