lstat returns an incorrect symbolic link size, with size 11 bytes too large. This causes mkcramfs to fail. CYGWIN variable is set to nowinsymlinks. Set to winsymlinks, the size is about 80 bytes too large. This is for a cygwin snapshot from September. This program generates the error for me. Create a symbolic link, e.g. ln -s -f x x compile program. e.g. gcc chklnk.c -o chklnk test. e.g. ./chklnk x Source for chklnk.c --------------------------------------------------- #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> int main(int argc, char ** argv) { int r; struct stat st; if(argc != 2)exit(-1); r = lstat(argv[1],&st); if(r != 0){ printf("lstat fails\n");exit(-1);} if(!S_ISLNK(st.st_mode)){printf("Not a symbolic link\n");exit(0);} printf("Size %d\n",(int)(st.st_size)); return 0; }
-- ______________________________________________ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/