[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Full-Disclosure] FAT32 input > output = null?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This also works with the 2.4.24 Linux kernel (Slackware 9.1):

chris@roamer:~$ more testfile.txt
Let's try this in Linux
chris@roamer:~$ ls -al testfile.txt
- -rw-r--r--    1 chris    users          24 Apr  7 12:43 testfile.txt
chris@roamer:~$ testfile.txt>testfile.txt
- -bash: ./testfile.txt: Permission denied
chris@roamer:~$ more testfile.txt
chris@roamer:~$ ls -al testfile.txt
- -rw-r--r--    1 chris    users           0 Apr  7 12:44 testfile.txt
chris@roamer:~$

Tried with +x too:

chris@roamer:~$ mv testfile.txt testfile
chris@roamer:~$ echo "ls -al">testfile
chris@roamer:~$ ls -al testfile
- -rw-r--r--    1 chris    users           7 Apr  7 12:48 testfile
chris@roamer:~$ chmod u+x testfile
chris@roamer:~$ ls -al testfile
- -rwxr--r--    1 chris    users           7 Apr  7 12:48 testfile*
chris@roamer:~$ ./testfile
total 346520
<My ls snipped>
chris@roamer:~$ testfile>testfile
- -bash: ./testfile: Text file busy
chris@roamer:~$ ls -al testfile
- -rwxr--r--    1 chris    users           0 Apr  7 12:49 testfile*


Chris



__________________________________
YAP, works for ntfs too...

- --------------------------------------
- --- morning_wood <se_cur_ity@xxxxxxxxxxx> wrote:
> Fat32 file output redirect overwrites self.
> ===========================
>
> odd behavior... >?
>
> 1.) console application output redirected to itself
> ( file.ext > file.ext )
> C:\test>program.exe >program.exe
>  program.exe

__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.netsys.com/full-disclosure-charter.html

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAdDGIOyWtx0MtxawRAuP6AJ9QHaZ/mhNxttBze9Nxb+ifZwU+nwCgmBZO
a1zOdYCkpelbTkIjRVo0VCw=
=xDPp
-----END PGP SIGNATURE-----

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.netsys.com/full-disclosure-charter.html