Re: stat()/lstat() problem (?)

2004-04-29 Thread Corinna Vinschen
On Apr 28 11:27, bertrand marquis wrote: ZXPLESPAC001, Ext a ?crit: The question is: - is the behavior on Linux/Solaris normal ? I fact there ain't a '//bin' only a '/bin', but even all the shells treat them as representing the same path (BTW 'cd //bin' on cygwin/bash doesn't work ...)

stat()/lstat() problem (?)

2004-04-28 Thread ZXPLESPAC001, Ext
Hi, here is my question/problem (see the example program below): -// #include stdio.h #include sys/types.h #include sys/stat.h #include errno.h static int is_dir(char * dr) { struct stat st; if(stat(dr, st) == -1) { perror(stat);

Re: stat()/lstat() problem (?)

2004-04-28 Thread bertrand marquis
ZXPLESPAC001, Ext a écrit: Hi, here is my question/problem (see the example program below): -// #include stdio.h #include sys/types.h #include sys/stat.h #include errno.h static int is_dir(char * dr) { struct stat st; if(stat(dr, st) == -1) {