gcj/342: file permissions on created file incorrect

patrick.dowler@nrc.ca patrick.dowler@nrc.ca
Thu Sep 7 12:30:00 GMT 2000


>Number:         342
>Category:       gcj
>Synopsis:       file permissions on created file incorrect
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 07 12:30:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Dowler
>Release:        2.95.2
>Organization:
>Environment:
linux (2.2.16), glibc 2.1.3
>Description:
Files created using FileWriter have permissions 755 by
default. When I run the program under the JRE they have
the normal 664 (appropriate for my umask).
>How-To-Repeat:
compile/run attached prog under gcj and a jre.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="FilePermTest.java"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="FilePermTest.java"

aW1wb3J0IGphdmEuaW8uKjsKCmNsYXNzIEZpbGVQZXJtVGVzdCAKewoJcHVibGljIHN0YXRpYyB2
b2lkIG1haW4oU3RyaW5nW10gYXJncykKCXsKCQl0cnkKCQl7CgkJUHJpbnRXcml0ZXIgdyA9IG5l
dyBQcmludFdyaXRlcihuZXcgRmlsZVdyaXRlcigiZmlsZXBlcm0udHh0IikpOwoJCXcucHJpbnRs
bigic2FtcGxlIHRleHQiKTsKCQl3LmNsb3NlKCk7CgkJfQoJCWNhdGNoKElPRXhjZXB0aW9uIGV4
KSB7IH0KCX0KfQo=


More information about the Java-prs mailing list