bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/31474] Strip permission denied


From: nickc at redhat dot com
Subject: [Bug binutils/31474] Strip permission denied
Date: Tue, 19 Mar 2024 15:49:18 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=31474

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2024-03-19
           Assignee|unassigned at sourceware dot org   |nickc at redhat dot com
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1
                 CC|                            |nickc at redhat dot com

--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Domenico Panella from comment #0)

Hi Domenico,

> I have a weird problem with strip command.
> When I run "strip" command from a shell script, I get a permission denied
> error.

Can you detail the exact command please ?

> Instead, if I run the same command from a terminal session, it works!
> Is it a bug or do i wrong anything?

This is probably a misunderstanding rather than a bug.

The most likely cause is the choice of output directory.  Strip works by
creating a temporary file in the same directory as the output file.  It then
copies the input file into this temporary file, stripping it as it goes. 
Finally if everything has worked it deletes the output file and renames the
temporary file to the output file.  So if there is some reason why a new file
cannot be created in the output directory then strip will fail.  For example:

  strip foo -o /dev/null

Will fail because ordinary users cannot create files in /dev, and they cannot
delete /dev/null either.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]