Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/PGcore.pm
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ sub surePathToTmpFile {
unless ( -e $tmpDirectory) { # if by some unlucky chance the tmpDirectory hasn't been created, create it.
my $parentDirectory = $tmpDirectory;
$parentDirectory =~s|/$||; # remove a trailing /
$parentDirectory =~s|/\w*$||; # remove last node
$parentDirectory =~s|/[^/]*$||; # remove last node
my ($perms, $groupID) = (stat $parentDirectory)[2,5];
#FIXME where is the parentDirectory defined??
#warn "Creating tmp directory at $tmpDirectory, perms $perms groupID $groupID";
Expand Down