[prev in list] [next in list] [prev in thread] [next in thread] 

List:       glibc-bug
Subject:    Re: Problems with stat() and lstat() in glibc 2.2
From:       Mike Castle <dalgoda () ix ! netcom ! com>
Date:       2000-11-28 16:20:53
[Download RAW message or body]

On Tue, Nov 28, 2000 at 10:26:05AM -0200, Count0 wrote:
> #include <sys/stat.h>
> #include <unistd.h>
> 
> int main()
> {
>   struct stat *buf;
> 
>   return stat("blah",  buf); /* Could be lstat()... */
> }

Just as a side note:  This code is broken anyway.

  struct stat buf;

  return stat("blah", &buf);


mrc
-- 
       Mike Castle       Life is like a clock:  You can work constantly
  dalgoda@ix.netcom.com  and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day.  -- mrc
    We are all of us living in the shadow of Manhattan.  -- Watchmen

_______________________________________________
Bug-glibc mailing list
Bug-glibc@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-glibc

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic