Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
fb2f6bd8
Commit
fb2f6bd8
authored
Apr 26, 2012
by
Matt Selsky
Committed by
Frédéric Buclin
Apr 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 747189: Remove Bugzilla::Util::file_mod_time()
r/a=LpSolit
parent
870deda4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
26 deletions
+2
-26
Util.pm
Bugzilla/Util.pm
+1
-25
showdependencygraph.cgi
showdependencygraph.cgi
+1
-1
No files found.
Bugzilla/Util.pm
View file @
fb2f6bd8
...
...
@@ -18,8 +18,7 @@ use base qw(Exporter);
diff_arrays on_main_db say
trim wrap_hard wrap_comment find_wrap_point
format_time validate_date validate_time datetime_from
file_mod_time is_7bit_clean
bz_crypt generate_random_password
is_7bit_clean bz_crypt generate_random_password
validate_email_syntax check_email_syntax clean_text
get_text template_var disable_utf8
detect_encoding)
;
...
...
@@ -560,14 +559,6 @@ sub datetime_from {
return
$dt
;
}
sub
file_mod_time
{
my
(
$filename
)
=
(
@_
);
my
(
$dev
,
$ino
,
$mode
,
$nlink
,
$uid
,
$gid
,
$rdev
,
$size
,
$atime
,
$mtime
,
$ctime
,
$blksize
,
$blocks
)
=
stat
(
$filename
);
return
$mtime
;
}
sub
bz_crypt
{
my
(
$password
,
$salt
)
=
@_
;
...
...
@@ -849,9 +840,6 @@ Bugzilla::Util - Generic utility functions for bugzilla
format_time($time);
datetime_from($time, $timezone);
# Functions for dealing with files
$time = file_mod_time($filename);
# Cryptographic Functions
$crypted_password = bz_crypt($password);
$new_password = generate_random_password($password_length);
...
...
@@ -1119,18 +1107,6 @@ the Bugzilla server's local timezone if there isn't a logged-in user.
=back
=head2 Files
=over 4
=item C<file_mod_time($filename)>
Takes a filename and returns the modification time. It returns it in the format
of the "mtime" parameter of the perl "stat" function.
=back
=head2 Cryptography
=over 4
...
...
showdependencygraph.cgi
View file @
fb2f6bd8
...
...
@@ -296,7 +296,7 @@ foreach my $f (@files)
# symlinks), this can't escape to delete anything it shouldn't
# (unless someone moves the location of $webdotdir, of course)
trick_taint
(
$f
);
my
$mtime
=
file_mod_time
(
$f
)
;
my
$mtime
=
(
stat
(
$f
))[
9
]
;
if
(
$mtime
&&
$mtime
<
$since
)
{
unlink
$f
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment