Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 31384 invoked by uid 500); 2 Nov 2000 18:45:53 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 31243 invoked from network); 2 Nov 2000 18:45:49 -0000 From: "Victor J. Orlikowski" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14849.46658.267463.717751@critterling.garfield.home> Date: Thu, 2 Nov 2000 13:45:22 -0500 To: new-httpd@apache.org Subject: File modes.... X-Mailer: VM 6.76 under Emacs 20.7.1 Reply-To: v.j.orlikowski@gte.net X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hello all, While playing with the logging patch, I found something that didn't quite sit right. This may be a FAQ, but I'll ask it anyway. Why would we ever go about creating a file with mode 0666 in the server (especially a log file)? These were the three lines that caught my attention... main/http_main.c:2135: scoreboard_fd = ap_popenf(p, ap_scoreboard_fname, O_CREAT | O_BINARY | O_RDWR, 0666); modules/proxy/proxy_cache.c:326: if ((timefd = creat(filename, 0666)) == -1) { support/rotatelogs.c:73: nLogFD = open(buf2, O_WRONLY | O_CREAT | O_APPEND, 0666); I figure that there is a good reason for this, but I'm not seeing it. Victor -- Victor J. Orlikowski ====================== v.j.orlikowski@gte.net vjo@raleigh.ibm.com vjo@us.ibm.com