Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF56F10D3C for ; Fri, 18 Oct 2013 05:09:59 +0000 (UTC) Received: (qmail 66716 invoked by uid 500); 18 Oct 2013 05:09:51 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 65280 invoked by uid 500); 18 Oct 2013 05:09:46 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 65176 invoked by uid 99); 18 Oct 2013 05:09:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2013 05:09:42 +0000 Date: Fri, 18 Oct 2013 05:09:42 +0000 (UTC) From: "Mladen Turk (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DAEMON-307) -umask input values and correlating output pid file permissions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)