summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctm
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-03-25 20:46:51 +0000
committerjoerg <joerg@FreeBSD.org>1995-03-25 20:46:51 +0000
commit90b59d01f5c6180d6aae3ca0f589c7515fd245aa (patch)
treed337414aecadc253bca6c17b3f15aeea449ae75c /usr.sbin/ctm
parent3376ef4ddbbf3eeca01ace7a75a1d6332e89418f (diff)
downloadFreeBSD-src-90b59d01f5c6180d6aae3ca0f589c7515fd245aa.zip
FreeBSD-src-90b59d01f5c6180d6aae3ca0f589c7515fd245aa.tar.gz
Call open(2) and mkdir(2) with 0666/0777 as the `mode' argument (as
opposed to 0644 or 0755). It's finally still masked by the process' umask(2), and it does not make sense to restrict it further than that. This (especially for mkdir(2)) was causing major headaches for the CVS tree, since a member of group cvs was later not able to get cvs checkout permission for the mirrored tree failed to write the lock file).
Diffstat (limited to 'usr.sbin/ctm')
-rw-r--r--usr.sbin/ctm/ctm/ctm_pass3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ctm/ctm/ctm_pass3.c b/usr.sbin/ctm/ctm/ctm_pass3.c
index cb536fa..8143816 100644
--- a/usr.sbin/ctm/ctm/ctm_pass3.c
+++ b/usr.sbin/ctm/ctm/ctm_pass3.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: ctm_pass3.c,v 1.7 1994/12/04 04:47:31 phk Exp $
+ * $Id: ctm_pass3.c,v 1.8 1995/02/04 19:20:49 phk Exp $
*
*/
@@ -89,7 +89,7 @@ Pass3(FILE *fd)
fprintf(stderr,"> %s %s\n",sp->Key,name);
if(!strcmp(sp->Key,"FM") || !strcmp(sp->Key, "FS")) {
- i = open(name,O_WRONLY|O_CREAT|O_TRUNC,0644);
+ i = open(name,O_WRONLY|O_CREAT|O_TRUNC,0666);
if(i < 0) {
perror(name);
WRONG
@@ -147,7 +147,7 @@ Pass3(FILE *fd)
continue;
}
if(!strcmp(sp->Key,"DM")) {
- if(0 > mkdir(name,0755)) {
+ if(0 > mkdir(name,0777)) {
sprintf(buf,"mkdir -p %s",name);
system(buf);
}
OpenPOWER on IntegriCloud