From: fenster@zk3.dec.com (Yaacov Fenster)
Subject: Re: How to set correct mode using mkdir(2) in C?
Date: 1996/07/08 [thread overview]
Message-ID: <4rrn53$k89@nntpd.lkg.dec.com> (raw)
In-Reply-To: 4re9nl$eb1@news.internetmci.com
In article <4re9nl$eb1@news.internetmci.com>
dyuan@win20.rch.mci.com (David Yuan) wrote:
> -------------------------------------------
> char mydir[] = "/tmp/data";
> mode_t mode = S_IRWXU | S_IRWXG;
> mkdir (mydir, mode);
> -------------------------------------------
>
> but the result is:
>
> drwxr-x--- 2 dyuan system 512 Jul 3 12:03 /tmp/data/
>
> The group is not writable.
> I also try to use umask (2) without luck.
I just now tried it after doing a umask(0) first (On both V3.2C and V4.0),
and I had no problem at all. Could you please post a full snippet of
code showing the problem ?
Yaacov
prev parent reply other threads:[~1996-07-08 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-03 4:00 How to set correct mode using mkdir(2) in C? David Yuan
1996-07-08 4:00 ` Yaacov Fenster [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox