----- Original Message -----
> From: "Wanlong Gao" <[email protected]>
> To: "Jan Stancek" <[email protected]>
> Cc: [email protected], [email protected]
> Sent: Tuesday, 19 February, 2013 3:15:54 AM
> Subject: Re: [LTP] [PATCH v3 2/3] setns: add new syscall test setns01
> 
> On 02/19/2013 02:17 AM, [email protected] wrote:
> > Hi!
> >> +static void setup1(struct testcase_t *t, int i)
> >> +{
> >> +  t->ns_type = ns_types[i];
> >> +  t->fd = open("dummy", O_CREAT);
> > 
> > While I tried to compile this code, I've got error as open with
> > O_CREAT
> > is required to pass the mode.
> 
> Applied with this line change to:
> 
> +       t->fd = open("dummy", O_RDWR|O_CREAT, 0600);

Thanks, that was error for sure. I just wonder what compiler/version Cyril used.

Regards,
Jan

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to