patchThe GNU Bourne-Again SHell - Patches: patch #10499, add a new loadable builtin chmod

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #10499: add a new loadable builtin chmod

Submitter:  Z. Liu <liuzx>
Submitted:  Thu 30 Jan 2025 05:04:03 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Open

Tue 11 Feb 2025 02:39:19 PM UTC, comment #3: 

I made some changes so that it can replace simple uses of chmod.

Chet Ramey <chet>
Group administrator
Sat 01 Feb 2025 04:04:12 AM UTC, comment #2: 

It is not intended to replace chmod, but I can add those options if needed.

The reason for this is that there are some emergency situations, such as libc being removed causing almost all programs to fail to execute properly, and some critical programs being removed, and although libc and other programs can be put back via /dev/tcp/..., the file mode bits cannot be changed, resulting in the inability to run the program. If there is a chmod builtin available, these operations can be performed.

Z. Liu <liuzx>
Fri 31 Jan 2025 08:25:13 PM UTC, comment #1: 

This isn't a chmod replacement -- it lacks the recursive option (POSIX -R) and the mode argument doesn't require a -m option.

Is there a reason to add this other than improved performance for new scripts? You can't use it to replace existing uses of chmod.

Chet Ramey <chet>
Group administrator
Thu 30 Jan 2025 05:04:03 AM UTC, original submission:  


Z. Liu <liuzx>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #56833:  0001-add-chmod.patch added by liuzx (5KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by chet (Posted a comment)
  • -email is unavailable- added by liuzx (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-02-11 chet StatusNeed Info Done
    2025-01-31 chet StatusNone Need Info
    2025-01-30 liuzx Attached File- Added 0001-add-chmod.patch, #56833

    Back to the top

    Powered by Savane 3.14-430a.
    Corresponding source code