And also because I seriously dislike variables declared in inner scopes
now.
struct elt *e, *ee;
struct stat st;
unsigned bad = 0;
struct elt *e, *ee;
struct stat st;
unsigned bad = 0;
/* --- Initialize stack pointer and path string --- */
/* --- Initialize stack pointer and path string --- */
/* --- Handle symbolic links specially --- */
if (S_ISLNK(st.st_mode)) {
/* --- Handle symbolic links specially --- */
if (S_ISLNK(st.st_mode)) {
int i;
/* --- Resolve the link --- */
int i;
/* --- Resolve the link --- */
dstr_ensure(&buf, st.st_size + 1);
if ((i = readlink(d.buf, buf.buf, buf.sz)) < 0) {
report(cp, CP_ERROR, 0, d.buf, "can't readlink: %e");
dstr_ensure(&buf, st.st_size + 1);
if ((i = readlink(d.buf, buf.buf, buf.sz)) < 0) {
report(cp, CP_ERROR, 0, d.buf, "can't readlink: %e");
else
pop();
ee = splitpath(buf.buf, ee);
else
pop();
ee = splitpath(buf.buf, ee);