]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/Insecure_dependency_in_mkdir.mdwn
file_pruned regression tests
[ikiwiki.git] / doc / bugs / Insecure_dependency_in_mkdir.mdwn
1 Joey, please see RecentChanges and note that this is my second bug report,
2 because the first was unsuccessfully (bad characters in post title?).
3 Could you please tidy it up?
4
5 > I've fixed that and the bug that caused the dup.
6
7 >> Thanks a lot! :)
8
9 I've just upgraded my ikiwiki from version 2.11 to the latest version 2.15.
10 I use my own rebuilt ikiwiki package for Ubuntu Gutsy box. Now I can't rebuild
11 all my ikiwiki pages, because of the following bug:
12
13     ptecza@anahaim:~/blog$ ikiwiki --setup ikiwiki.setup --getctime --verbose
14     [...]
15     scanning post/2007/12/09/pink-freud-w-cafe-kulturalna.mdwn
16     ikiwiki.setup: Insecure dependency in mkdir while running with -T switch at /usr/share/perl5/IkiWiki.pm line 355.
17     BEGIN failed--compilation aborted at (eval 5) line 151.
18
19 I have a write permission to the ikiwiki destination directory:
20
21     ptecza@anahaim:~/blog$ ls -ld /var/www/blog/
22     drwxr-xr-x 2 ptecza ptecza 4096 2007-12-17 10:48 /var/www/blog/
23
24 I've read ikiwiki changelog for the previous releases and unfortunately
25 I can't see any related entries. Any ideas?
26
27 --[[Paweł|ptecza]]
28
29 > **Update**: I've came back to ikiwiki 2.11 and... the bug still exists!
30 > Probably the reason is that I've removed all content of `/var/www/blog/`
31 > before mass rebuilding. --[[Paweł|ptecza]]
32
33 > I can't reproduce this bug with a setup file that tells ikiwiki to
34 > write to /var/www/blog, which doesn't exist. I get a "Permission denied"
35 > since I can't write to /var/www. If I make the permissions allow me to
36 > write to /var/www, it happily creates the blog subdirectory. If the blog
37 > subdirectory is already there and I can write to it, that of course also
38 > works.
39
40 > I'll need enough information to reproduce the problem before I can fix
41 > it. Probably a copy of your setup file, wiki source, and information
42 > about how your /var/www is set up. --[[Joey]]
43
44 >> Thanks for your efforts, Joey! I sent my `ikiwiki.setup` file to you.
45 >> What source do you need? Entire my ikiwiki or only some pages?
46 >>
47 >> There are settings of `/var/www/` directory on my Ubuntu Gutsy box:
48 >>
49 >>        ptecza@anahaim:~$ ls -al /var/www/
50 >>        total 16
51 >>        drwxr-xr-x  4 root   root   4096 2007-11-06 16:25 .
52 >>        drwxr-xr-x 14 root   root   4096 2007-11-06 16:13 ..
53 >>        drwxr-xr-x  2 root   root   4096 2007-11-06 16:13 apache2-default
54 >>        drwxr-xr-x  5 ptecza ptecza 4096 2007-12-17 16:54 blog
55 >>
56 >> --[[Paweł|ptecza]]
57
58 >> I need a set of files that you know I can use to reproduce the bug.
59 >> --[[Joey]]
60
61 >> I'd forgotten about [this perl bug](http://bugs.debian.org/411786).
62 >> All I can do is work around it by disabling the taint checking. :-(
63 >> (Which I've [[done]].) --[[Joey]]