linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brian Raiter <breadbox@muppetlabs.com>
To: linux-assembly@vger.kernel.org
Subject: Re: chdir on linux does not work
Date: Tue, 23 May 2006 23:18:29 -0700	[thread overview]
Message-ID: <17523.64181.553724.79208@eidolon.muppetlabs.com> (raw)
In-Reply-To: <20060524024929.99396.qmail@web50504.mail.yahoo.com>

> 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

  parent reply	other threads:[~2006-05-24  6:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-24  2:49 chdir on linux does not work Noprianto
2006-05-24  4:26 ` Timo Lindfors
2006-05-24  6:49   ` Frank Kotler
2006-05-24  7:15     ` Brian Raiter
2006-05-24  7:21       ` Frank Kotler
2006-05-24 12:17       ` Timo Lindfors
2006-05-25  3:55     ` Adrian Ho
2006-05-25  4:18       ` Frank Kotler
2006-05-24  6:18 ` Brian Raiter [this message]
2006-05-24 14:06 ` jeff
2006-05-25  3:20   ` Noprianto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17523.64181.553724.79208@eidolon.muppetlabs.com \
    --to=breadbox@muppetlabs.com \
    --cc=linux-assembly@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).