This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] jar tool should honour umask while creating a jar


>>>>> "Ranjit" == Ranjit Mathew <rmathew@hotmail.com> writes:

Ranjit> I noticed that the jar tool with GCJ does not honour umask
Ranjit> settings while creating a jar, while the jar tool included
Ranjit> with Sun's JDK does. Now I don't have any specs to back this
Ranjit> up, but I feel that the jar tool *should* honour the umask
Ranjit> settings for the user running the tool.

I agree.

Ranjit> If you guys agree with me, you should consider applying
Ranjit> the following patch to "fastjar/jartool.c":

Ranjit> -      jarfd = open(jarfile, O_CREAT | O_BINARY | O_WRONLY | O_TRUNC,
Ranjit> -                  S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
Ranjit> +      jarfd = open(jarfile, O_CREAT | O_BINARY | O_WRONLY | O_TRUNC);

Let's add the missing bits instead.
Or perhaps just use `0777'.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]