Re: chdir on linux does not work
Brian Raiter <[email protected]> Tue, 23 May 2006 23:18:29 -0700
| Newsgroups | org.kernel.vger.linux-assembly |
|---|---|
| Message-ID | <[email protected]> |
> Anyone can tell me why this chdir code doesnot work on > linux ? > section .data > dir: db '/bin' You forgot to NUL-terminate your string. A dangerous mistake, as it can become a Heisenbug. You were lucky it failed to work for you. Use this instead: dir: db '/bin', 0 b