Re: cp error message Invalid character in program

2008-10-06 Thread jared r r spiegel
On Sat, Oct 04, 2008 at 03:44:37PM -0600, Jack Woehr wrote: Philip Guenther wrote: What's the output of ktrace rm ccreply.rex kdump | egrep -A1 -B2 'execv|errno' You answered it. Look here: 16524 rm CALL open(0xcfbd1e60,0,0) 16524 rm NAMI /opt/ooRexx/bin/rexx.cat

Re: cp error message Invalid character in program

2008-10-06 Thread Jack Woehr
jared r r spiegel wrote: $ cp file file.bak as far as 'wtf is going on with cp(1)', maybe would've hinted at you are executing something other than /bin/cp earlier in the game. Wasn't executing something other than. Was getting NLS error messages for OBSD commands from the Object Rexx

cp error message Invalid character in program

2008-10-04 Thread Jack Woehr
I'm experiencing something with 4.3 I never experienced before, or maybe I just wasn't paying attention. In the following example, I'm trying to copy a file (wrongly) in a directory I don't own and which is write-protected: cp factor.rex factor.rex.bak cp: factor.rex.bak: Invalid

Re: cp error message Invalid character in program

2008-10-04 Thread Philip Guenther
On Sat, Oct 4, 2008 at 12:36 PM, Jack Woehr [EMAIL PROTECTED] wrote: In the following example, I'm trying to copy a file (wrongly) in a directory I don't own and which is write-protected: cp factor.rex factor.rex.bak cp: factor.rex.bak: Invalid character in program Invalid character in

Re: cp error message Invalid character in program

2008-10-04 Thread Jack Woehr
Philip Guenther wrote: Hmm, I don't see that error message in the stock /bin/cp or /bin/rm. Are you running your own version of them or have shell script wrappers for them or something? What's the output of which cp rm? Is it maybe builtin to ksh? Besides, the error message is probably

Re: cp error message Invalid character in program

2008-10-04 Thread Paul de Weerd
On Sat, Oct 04, 2008 at 02:39:16PM -0600, Jack Woehr wrote: Philip Guenther wrote: Hmm, I don't see that error message in the stock /bin/cp or /bin/rm. Are you running your own version of them or have shell script wrappers for them or something? What's the output of which cp rm? Is it

Re: cp error message Invalid character in program

2008-10-04 Thread Philip Guenther
On Sat, Oct 4, 2008 at 1:39 PM, Jack Woehr [EMAIL PROTECTED] wrote: Is it maybe builtin to ksh? ksh doesn't have builtins for cp or rm. Besides, the error message is probably from a runtime lib, right? Perhaps, but /bin/rm and /bin/cp are staticly linked, so the message would appear in the

Re: cp error message Invalid character in program

2008-10-04 Thread Jack Woehr
Paul de Weerd wrote: Also compare the md5 sum of your /bin/rm with the sum from a clean install of 4.3 (assuming this is a -RELEASE version you're running). It's 4.3 release but I did rebuild from freshly checked out source. Both the release and the checkout came from ftp3.usa.openbsd.org

Re: cp error message Invalid character in program

2008-10-04 Thread Jack Woehr
Philip Guenther wrote: Perhaps, but /bin/rm and /bin/cp are staticly linked, so the message would appear in the binary in some form. strings /bin /rm doesn't show that string. Anway: $ echo $SHELL /bin/ksh $ which rm /bin/rm $ ls -l ccreply.rex -rwxr-xr-x 1 root wheel

Re: cp error message Invalid character in program

2008-10-04 Thread Philip Guenther
On Sat, Oct 4, 2008 at 2:09 PM, Jack Woehr [EMAIL PROTECTED] wrote: It's 4.3 release but I did rebuild from freshly checked out source. Oh well, then the md5s wouldn't be expected to match. What's the output of ktrace rm ccreply.rex kdump | egrep -A1 -B2 'execv|errno' Philip Guenther

Re: cp error message Invalid character in program

2008-10-04 Thread Stuart Henderson
On 2008-10-04, Jack Woehr [EMAIL PROTECTED] wrote: Philip Guenther wrote: Hmm, I don't see that error message in the stock /bin/cp or /bin/rm. Are you running your own version of them or have shell script wrappers for them or something? What's the output of which cp rm? Is it maybe

Re: cp error message Invalid character in program

2008-10-04 Thread Jack Woehr
Philip Guenther wrote: What's the output of ktrace rm ccreply.rex kdump | egrep -A1 -B2 'execv|errno' You answered it. Look here: 16524 rm CALL open(0xcfbd1e60,0,0) 16524 rm NAMI /opt/ooRexx/bin/rexx.cat Hmm ... $ set | grep NLSPATH NLSPATH=/opt/ooRexx/bin/rexx.cat: