Skip to content

Commit

Permalink
Fixed #45
Browse files Browse the repository at this point in the history
  • Loading branch information
Real-Gecko committed Nov 6, 2015
1 parent ea0fe21 commit aafbaa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filemin-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ sub print_interface {
my $img = "images/icons/mime/$type.png";
unless (-e $img) { $img = "images/icons/mime/unknown.png"; }
$size = &nice_size($list[$count - 1][8]);
$user = getpwuid($list[$count - 1][5]);
$group = getgrgid($list[$count - 1][6]);
$user = getpwuid($list[$count - 1][5]) ? getpwuid($list[$count - 1][5]) : $list[$count - 1][5];
$group = getgrgid($list[$count - 1][6]) ? getgrgid($list[$count - 1][6]) : $list[$count - 1][6];
$permissions = sprintf("%04o", $list[$count - 1][3] & 07777);
$mod_time = POSIX::strftime('%Y/%m/%d - %T', localtime($list[$count - 1][10]));

Expand Down

2 comments on commit aafbaa8

@iliajie
Copy link
Contributor

@iliajie iliajie commented on aafbaa8 Nov 6, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look great! ;)

@Real-Gecko
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep :D

Please sign in to comment.