aboutsummaryrefslogtreecommitdiff
path: root/sysutils/webmin/files
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2004-10-12 09:42:02 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2004-10-12 09:42:02 +0000
commitf721720d970ba744fdd64f3b2dadb1ea528d609f (patch)
tree0d5962145aee7a5e6cb4b20ebe033f3e520a3419 /sysutils/webmin/files
parent405f40a4861b4c4396793ee97e352fe9c0a0c779 (diff)
Notes
Diffstat (limited to 'sysutils/webmin/files')
-rw-r--r--sysutils/webmin/files/patch-maketemp.pl34
1 files changed, 0 insertions, 34 deletions
diff --git a/sysutils/webmin/files/patch-maketemp.pl b/sysutils/webmin/files/patch-maketemp.pl
deleted file mode 100644
index 286cb8942e5a..000000000000
--- a/sysutils/webmin/files/patch-maketemp.pl
+++ /dev/null
@@ -1,34 +0,0 @@
-
-$FreeBSD$
-
---- maketemp.pl.orig Wed Sep 15 00:00:08 2004
-+++ maketemp.pl Wed Sep 15 00:00:19 2004
-@@ -3,17 +3,16 @@
-
- $tmp_dir = $ENV{'tempdir'} || "/tmp/.webmin";
-
--if (!-d $tmp_dir) {
-- mkdir($tmp_dir, 0755) || exit 1;
-- }
--chown($<, $(, $tmp_dir);
--chmod(0755, $tmp_dir);
--@st = lstat($tmp_dir);
--if (@st && $st[4] == $< && (-d _) &&
-- ($st[2] & 0777) == 0755) {
-- exit 0;
-- }
--else {
-- exit 1;
-+while($tries++ < 10) {
-+ local @st = lstat($tmp_dir);
-+ exit(0) if ($st[4] == $< && (-d _) && ($st[2] & 0777) == 0755);
-+ if (@st) {
-+ unlink($tmp_dir) || rmdir($tmp_dir) ||
-+ system("/bin/rm -rf ".quotemeta($tmp_dir));
-+ }
-+ mkdir($tmp_dir, 0755) || next;
-+ chown($<, $(, $tmp_dir);
-+ chmod(0755, $tmp_dir);
- }
-+exit(1);
-