Bug 11131

Summary: 1.29.0 tar.bz2 has examples/shutdown-1.0/ with read-only permissions
Product: Busybox Reporter: Hannu Nyman <hannu.nyman>
Component: OtherAssignee: unassigned
Status: RESOLVED WORKSFORME    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.29.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Hannu Nyman 2018-07-01 18:35:00 UTC
The busybox-1.29.0.tar.bz2 file contains the examples/shutdown-1.0/ directory with file permissions (444 or 555) that prevent even the owner to delete the directory and files in it. That breaks e.g. the cleaning of the source code directory after the build.

drwxr-xr-x root/root         0 2018-04-20 16:04 busybox-1.29.0/examples/shutdown-1.0/
-r--r--r-- root/root      1158 2018-04-20 16:05 busybox-1.29.0/examples/shutdown-1.0/README
dr-xr-xr-x root/root         0 2018-04-20 15:50 busybox-1.29.0/examples/shutdown-1.0/script/
-r-xr-xr-x root/root      2068 2018-04-20 15:51 busybox-1.29.0/examples/shutdown-1.0/script/stop_storage
-r--r--r-- root/root      3334 2018-04-20 15:49 busybox-1.29.0/examples/shutdown-1.0/script/hardshutdown.c
-r-xr-xr-x root/root      2090 2018-04-20 15:42 busybox-1.29.0/examples/shutdown-1.0/script/shutdown
-r-xr-xr-x root/root       151 2018-04-20 15:49 busybox-1.29.0/examples/shutdown-1.0/script/hardshutdown.make.sh
-r-xr-xr-x root/root      1902 2018-04-20 15:16 busybox-1.29.0/examples/shutdown-1.0/script/stop_tasks
-r-xr-xr-x root/root      1548 2018-04-20 15:09 busybox-1.29.0/examples/shutdown-1.0/script/do_shutdown

That causes trouble e.g. in the Openwrt build environment.
Comment 1 Denys Vlasenko 2018-07-02 16:22:25 UTC
Are you sure about it? I triple-checked, the perms are ok.
Comment 2 Hannu Nyman 2018-07-02 16:43:47 UTC
Looks like the file has changed during the night.

Above in the original ticket is the "tar tvf" from the file I downloaded yesterday from  https://www.busybox.net/downloads/busybox-1.29.0.tar.bz2 (before you had announced the release), and that file has older time stamps and different permissions than the one that can be downloaded right now.

Right now, today's file seems to have the correct permissions.

perus@ub1804:/tmp$ tar tvf busybox-1.29.0.tar.bz2 | grep shutdown
drwxr-xr-x root/root         0 2018-07-02 16:55 busybox-1.29.0/examples/shutdown-1.0/
-rw-r--r-- root/root      1158 2018-07-02 16:55 busybox-1.29.0/examples/shutdown-1.0/README
drwxr-xr-x root/root         0 2018-07-02 16:55 busybox-1.29.0/examples/shutdown-1.0/script/
-rwxr-xr-x root/root      2068 2018-07-02 16:55 busybox-1.29.0/examples/shutdown-1.0/script/stop_storage
-rw-r--r-- root/root      3334 2018-07-02 16:55 busybox-1.29.0/examples/shutdown-1.0/script/hardshutdown.c

so, I guess that I managed to download some kind of pre-release version? 


I guess that the ticket can be closed.