[nginx-test] tempdir permission
洪志道
hongzhidao at gmail.com
Fri Oct 21 14:33:05 UTC 2016
Ok, thanks.
2016-10-21 21:04 GMT+08:00 Maxim Dounin <mdounin at mdounin.ru>:
> Hello!
>
> On Fri, Oct 21, 2016 at 11:44:01AM +0800, 洪志道 wrote:
>
> > Hi!
> >
> > I run the following test.
> >
> > > cat test.t
> > #!/usr/bin/perl
> >
> > use warnings;
> > use strict;
> >
> > use File::Temp qw/ tempdir /;
> >
> > tempdir(
> > 'nginx-test-XXXXXXXXXX',
> > TMPDIR => 1
> > )
> > or die "Can't create temp directory: $!\n";
> >
> >
> > > prove test.t
> >
> >
> > > ll -d /tmp/nginx-test*
> > drwx------ 2 root root 4096 Oct 20 06:09 /tmp/nginx-test-8ZmZ2FksyP
> >
> >
> > The same problem is exist in nginx-test. And I can't pass the test like
> > request_id.t.
>
> Start tests under unprivileged user, not under root.
>
> --
> Maxim Dounin
> http://nginx.org/
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20161021/21a5dd95/attachment.html>
More information about the nginx-devel
mailing list