Re: [PATCH] Do _not_ call unlink on a directory From: Brian Downing <hidden> Date: 2016-06-15 22:43:21 On Mon, Jul 16, 2007 at 07:38:41PM +0200, Thomas Glanzmann wrote: const char *slash = path; + struct stat st; memcpy(buf, path, len); buf[len] = 0; + if (!stat(buf, &st) && S_ISDIR(st.st_mode)) + continue; /* ok */ You've got some whitespace damage here. Git's style is to use tabs. -bcd
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help