qiqian / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

webp tarball contents not readable by "everyone" #175

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. extract the webp source tarball
2. examine permissions of extracted files and directories

What is the expected output? What do you see instead?
Expected "everyone" to have permission to deal with these files; instead, 
"everyone" has no access.

What version of the product are you using? On what operating system?
Any version, 0.1 through 0.3.1 inclusive. OS X.

Please provide any additional information below.
This is inconvenient for me, as packager of webp in MacPorts, because after 
asking MacPorts to extract the tarball (which it does using the "macports" user 
account), I am not able to see its contents using my personal user account. I 
have added code to the MacPorts webp portfile to recursively correct the 
permissions, but it is silly that I have to do this. Please distribute future 
versions' tarballs with files readable by "everyone", like everyone else's 
tarballs.

Original issue reported on code.google.com by ryandesi...@gmail.com on 12 Oct 2013 at 5:02

GoogleCodeExporter commented 8 years ago
The archives should have the correct permissions set. Check your umask when 
extracting. For instance, 0027 would cause this behavior.

$ tar -tvzf libwebp-0.3.1-mac-10.7.tar.gz
drwxr-xr-x 100/100           0 2013-06-18 01:59 libwebp-0.3.1-mac-10.7/
-rwxr-xr-x 100/100      178524 2013-06-18 01:59 libwebp-0.3.1-mac-10.7/webpmux
-rwxr-xr-x 100/100      285476 2013-06-18 01:59 libwebp-0.3.1-mac-10.7/dwebp
-rw-r--r-- 100/100       18697 2013-06-18 01:59 libwebp-0.3.1-mac-10.7/README
-rw-r--r-- 100/100        6418 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/README.mux
-rwxr-xr-x 100/100      318164 2013-06-18 01:59 libwebp-0.3.1-mac-10.7/gif2webp
-rwxr-xr-x 100/100      205556 2013-06-18 01:59 libwebp-0.3.1-mac-10.7/vwebp
drwxr-xr-x 100/100           0 2013-06-18 02:01 libwebp-0.3.1-mac-10.7/include/
drwxr-xr-x 100/100           0 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/include/webp/
-rw-r--r-- 100/100        2873 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/include/webp/mux_types.h
-rw-r--r-- 100/100        9211 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/include/webp/demux.h
-rw-r--r-- 100/100       15137 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/include/webp/mux.h
-rw-r--r-- 100/100       22686 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/include/webp/decode.h
-rw-r--r-- 100/100       23833 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/include/webp/encode.h
-rw-r--r-- 100/100        1452 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/include/webp/types.h
drwxr-xr-x 100/100           0 2013-06-18 02:01 libwebp-0.3.1-mac-10.7/doc/
-rw-r--r-- 100/100        3452 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/doc/gif2webp.txt
-rw-r--r-- 100/100       12147 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/doc/cwebp.txt
-rw-r--r-- 100/100        6246 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/doc/gif2webp.html
-rw-r--r-- 100/100       17010 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/doc/cwebp.html
-rw-r--r-- 100/100        3818 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/doc/dwebp.txt
-rw-r--r-- 100/100        8332 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/doc/webpmux.html
-rw-r--r-- 100/100        4043 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/doc/webpmux.txt
-rw-r--r-- 100/100        7694 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/doc/dwebp.html
drwxr-xr-x 100/100           0 2013-06-18 02:01 libwebp-0.3.1-mac-10.7/lib/
-rw-r--r-- 100/100       26480 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/lib/libwebpmux.a
-rw-r--r-- 100/100        9376 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/lib/libwebpdemux.a
-rw-r--r-- 100/100      389648 2013-06-18 01:59 
libwebp-0.3.1-mac-10.7/lib/libwebp.a
-rwxr-xr-x 100/100      958244 2013-06-18 01:59 libwebp-0.3.1-mac-10.7/cwebp

$ tar -tvzf libwebp-0.3.1-mac-10.8.tar.gz
drwxr-xr-x 100/100           0 2013-06-18 01:58 libwebp-0.3.1-mac-10.8/
-rwxr-xr-x 100/100      178560 2013-06-18 01:58 libwebp-0.3.1-mac-10.8/webpmux
-rwxr-xr-x 100/100      285512 2013-06-18 01:58 libwebp-0.3.1-mac-10.8/dwebp
-rw-r--r-- 100/100       18697 2013-06-18 01:58 libwebp-0.3.1-mac-10.8/README
-rw-r--r-- 100/100        6418 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/README.mux
-rwxr-xr-x 100/100      318200 2013-06-18 01:58 libwebp-0.3.1-mac-10.8/gif2webp
-rwxr-xr-x 100/100      205608 2013-06-18 01:58 libwebp-0.3.1-mac-10.8/vwebp
drwxr-xr-x 100/100           0 2013-06-18 02:01 libwebp-0.3.1-mac-10.8/include/
drwxr-xr-x 100/100           0 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/include/webp/
-rw-r--r-- 100/100        2873 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/include/webp/mux_types.h
-rw-r--r-- 100/100        9211 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/include/webp/demux.h
-rw-r--r-- 100/100       15137 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/include/webp/mux.h
-rw-r--r-- 100/100       22686 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/include/webp/decode.h
-rw-r--r-- 100/100       23833 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/include/webp/encode.h
-rw-r--r-- 100/100        1452 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/include/webp/types.h
drwxr-xr-x 100/100           0 2013-06-18 02:01 libwebp-0.3.1-mac-10.8/doc/
-rw-r--r-- 100/100        3452 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/doc/gif2webp.txt
-rw-r--r-- 100/100       12147 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/doc/cwebp.txt
-rw-r--r-- 100/100        6246 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/doc/gif2webp.html
-rw-r--r-- 100/100       17010 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/doc/cwebp.html
-rw-r--r-- 100/100        3818 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/doc/dwebp.txt
-rw-r--r-- 100/100        8332 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/doc/webpmux.html
-rw-r--r-- 100/100        4043 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/doc/webpmux.txt
-rw-r--r-- 100/100        7694 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/doc/dwebp.html
drwxr-xr-x 100/100           0 2013-06-18 02:01 libwebp-0.3.1-mac-10.8/lib/
-rw-r--r-- 100/100       26480 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/lib/libwebpmux.a
-rw-r--r-- 100/100        9376 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/lib/libwebpdemux.a
-rw-r--r-- 100/100      389648 2013-06-18 01:58 
libwebp-0.3.1-mac-10.8/lib/libwebp.a
-rwxr-xr-x 100/100      958280 2013-06-18 01:58 libwebp-0.3.1-mac-10.8/cwebp

Original comment by jz...@chromium.org on 14 Oct 2013 at 11:54

GoogleCodeExporter commented 8 years ago
The archives look fine to me, marking this as cannot reproduce.

Original comment by jz...@google.com on 11 Dec 2013 at 4:27

GoogleCodeExporter commented 8 years ago
I cannot explain why you could not reproduce this problem, since it is trivial 
to do so:

$ curl -O https://webp.googlecode.com/files/libwebp-0.3.1.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  824k  100  824k    0     0   457k      0  0:00:01  0:00:01 --:--:--  611k
$ tar xzf libwebp-0.3.1.tar.gz 
$ ls -ld libwebp-0.3.1
drwxr-x---  34 rschmidt  wheel  1156 Jun 17  2013 libwebp-0.3.1
$ 

Fortunately the 0.4.0 release does not have this problem:

$ curl -O https://webp.googlecode.com/files/libwebp-0.4.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  867k  100  867k    0     0   453k      0  0:00:01  0:00:01 --:--:--  453k
$ tar xzf libwebp-0.4.0.tar.gz 
$ ls -ld libwebp-0.4.0
drwxr-xr-x  34 rschmidt  wheel  1156 Dec 20 21:41 libwebp-0.4.0
$ 

So the ticket should be marked as fixed, not invalid, since there was a 
problem, and you have fixed it.

Original comment by ryandesi...@gmail.com on 1 Jan 2014 at 2:56

GoogleCodeExporter commented 8 years ago
> So the ticket should be marked as fixed, not invalid, since there was a 
problem, and you have fixed it.

I guess I missed the source archive in my original reply, the binaries were 
fine.
So we'll call this fixed in 0.4.0.

Original comment by jz...@google.com on 7 Jan 2014 at 8:46