commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DAEMON-307) -umask input values and correlating output pid file permissions
Date Fri, 18 Oct 2013 05:09:42 GMT

    [ https://issues.apache.org/jira/browse/DAEMON-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13798804#comment-13798804
] 

Mladen Turk commented on DAEMON-307:
------------------------------------

I see you have
-umask 0002 | Switching umask back to 022 from 002
-umask 0022 | Switching umask back to 022 from 002
-umask 0004 | Switching umask back to 022 from 002
-umask 0072 | Switching umask back to 022 from 072 

This is weird because we convert the -umask parameter argument as octal number and never change
it after that.
>From your log it would mean that OS strtol() function gives wrong results for certain
numbers which is hard to believe.

I cannot reproduce those setting on my fedora 
eg.
./jsvc -debug -umask 0002 foo-bar
...
Switching umask back to 002 from 002
...

./jsvc -debug -umask 0022 foo-bar
...
Switching umask back to 002 from 022
...


So everything looks perfectly OK. Check your input params.
Also are you sure you are using the latest daemon with DAEMON-280 fix?


> -umask input values and correlating output pid file permissions
> ---------------------------------------------------------------
>
>                 Key: DAEMON-307
>                 URL: https://issues.apache.org/jira/browse/DAEMON-307
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Jsvc
>    Affects Versions: 1.0.15
>         Environment: CentOS 6.3 64-bit
>            Reporter: Richard Thiemann
>            Priority: Minor
>
> I'm passing the following input values to the -umask flag in a bourne shell script and
get the following resulting file permissions on the pid file. 
> umask  | file permissions on PID file
>    0011  |  644
>    0002  |  644
>    0022  |  644
>    0003  |  644
>    0033  |  644
>    0004  |  640
>    0005  |  640
>    0055  |  600
>    0006  |  640
>    0072  |  604
>    0073  |  604
> Which I don't believe is the correct output. 
> log messages from adding the -debug flag follow with the according -umask flag value
> -umask 0002 | Switching umask back to 022 from 002
> -umask 0022 | Switching umask back to 022 from 002 
> -umask 0004 | Switching umask back to 022 from 002
> -umask 0072 | Switching umask back to 022 from 072
> -umask 0055 | Switching umask back to 022 from 055
> -umask 0066 | Switching umask back to 022 from 066
> -umask 0077 | Switching umask back to 022 from 077 



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message