Re: chdir on linux does not work

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

 



> 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
-
: send the line "unsubscribe linux-assembly" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Linux C Programming]     [Linux for Hams]     [DCCP]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux