[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothro
From: |
Oğuz |
Subject: |
Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));" |
Date: |
Fri, 22 Jan 2021 14:00:58 +0200 |
22 Ocak 2021 Cuma tarihinde Eduardo A. Bustamante López <dualbus@gmail.com>
yazdı:
>
> - Notice that the value returned by `fstat(0, ...)' indicates that
> /dev/null in your system is a *regular* file (it should be
> `st_mode=S_IFCHR|0666', but instead it is `st_mode=S_IFCHR|0666'). It also
> indicates that its size is 73 bytes (`st_size=73').
> - Notice that `cat' reads from file descriptor 0 (i.e. /dev/null), and the
> return value is a string of 73 bytes in length.
> - `cat' then writes that string out to `./config.status'
>
> 73 happens to be the length of the string that has been causing issues for
> you:
>
> $ echo "extern void free (void *__ptr) __attribute__ ((__nothrow__ ,
> __leaf__));" | wc -c
> 73
>
Hilarious. I bet at some point, someone thought moving a file to /dev/null
would have the same effect as removing it...
--
Oğuz
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", (continued)
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Mathias Steiger, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Greg Wooledge, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Chet Ramey, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Mathias Steiger, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Eduardo Bustamante, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Mathias Steiger, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Eduardo A . Bustamante López, 2021/01/22
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Tadeus Prastowo, 2021/01/22
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));",
Oğuz <=
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Elias Haisch, 2021/01/22
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Chet Ramey, 2021/01/22
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Alex fxmbsw7 Ratchev, 2021/01/22
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Mathias Steiger, 2021/01/22
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Mathias Steiger, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Chet Ramey, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Mathias Steiger, 2021/01/21
- Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Mathias Steiger, 2021/01/21
Re: obscure bug "extern void free (void *__ptr) __attribute__ ((__nothrow__ , __leaf__));", Dale R. Worley, 2021/01/21