bug?

touch a
ln -s a b
mkdir tmp
mv a b tmp
mv: Source file not found. (b)

It works fine on my Solaris and Linux boxes.
looks like QNX6’s mv can’t deal with symlinks properly.

Frank

Frank Liu <liug@mama.indstate.edu> wrote:

touch a
ln -s a b
mkdir tmp
mv a b tmp
mv: Source file not found. (b)
It works fine on my Solaris and Linux boxes.
looks like QNX6’s mv can’t deal with symlinks properly.

Cool. Definitely a “mv” issue, the filesystem never gets a callout on b.
And “ln -s DOES_NOT_EXIST b” also raises the error; reversing the order
to “mv b a tmp” doesn’t. Looks like “mv” is over-anxiously stat()ing
things, changing it to do an lstat() allows it to work … I’ll fix it,
thanks for the bug report :slight_smile:

here is another one.

chmod +w file
(seems to work)
chmod -w file
(gives an error).
(this seems to work on other Unices I tried)

Frank Liu <liug@mama.indstate.edu> wrote:

here is another one.
chmod +w file
(seems to work)
chmod -w file
(gives an error).
(this seems to work on other Unices I tried)

Works for me. I see diffs in the CVS that appear to address this,
and I know the utils people have been dealing with cmdline issues,
so I assume it has now been fixed but not yet released …

Frank Liu <liug@mama.indstate.edu> wrote:

here is another one.

Hi frank,

chmod +w file
(seems to work)
chmod -w file
(gives an error).
(this seems to work on other Unices I tried)

What error are you seeing, and what OS version are you running?

Regards,

Marcin

Tools Mail Account <tools@qnx.com> wrote:

Frank Liu <> liug@mama.indstate.edu> > wrote:

here is another one.

Hi frank,

chmod +w file
(seems to work)
chmod -w file
(gives an error).
(this seems to work on other Unices I tried)

What error are you seeing, and what OS version are you running?

The OS is the one that is currently available for download at
http://get.qnx.com with patch A (6.1A)
the error is
chmod: Must indicate a mode and at least one file

does any other people outside qssl have this same error?

I fixed this quite a while ago. It’s actually in the current release but
must have not made it into the previous one. Ah…option parsing bugs…I
squash a hundred a day and they keep popping up. :wink:

cheers,

Kris
“Frank Liu” <liug@mama.indstate.edu> wrote in message
news:a3n7up$hsv$1@inn.qnx.com

Tools Mail Account <> tools@qnx.com> > wrote:
Frank Liu <> liug@mama.indstate.edu> > wrote:

here is another one.

Hi frank,

chmod +w file
(seems to work)
chmod -w file
(gives an error).
(this seems to work on other Unices I tried)

What error are you seeing, and what OS version are you running?

The OS is the one that is currently available for download at
http://get.qnx.com > with patch A (6.1A)
the error is
chmod: Must indicate a mode and at least one file

does any other people outside qssl have this same error?

John Garvey <jgarvey@qnx.com> wrote:

Frank Liu <> liug@mama.indstate.edu> > wrote:
touch a
ln -s a b
mkdir tmp
mv a b tmp
mv: Source file not found. (b)
It works fine on my Solaris and Linux boxes.
looks like QNX6’s mv can’t deal with symlinks properly.

Cool. Definitely a “mv” issue, the filesystem never gets a callout on b.
And “ln -s DOES_NOT_EXIST b” also raises the error; reversing the order
to “mv b a tmp” doesn’t. Looks like “mv” is over-anxiously stat()ing
things, changing it to do an lstat() allows it to work … I’ll fix it,
thanks for the bug report > :slight_smile:

Just installed and tested this on the 6.2BMV beta.
This bug is still there.

John Garvey <jgarvey@qnx.com> wrote:

Frank Liu <> liug@mama.indstate.edu> > wrote:
here is another one.
chmod +w file
(seems to work)
chmod -w file
(gives an error).
(this seems to work on other Unices I tried)

Works for me. I see diffs in the CVS that appear to address this,
and I know the utils people have been dealing with cmdline issues,
so I assume it has now been fixed but not yet released …

BMV seems to have this in there.
it works fine.