Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Bachelot Xavier
fusiondirectory-tools
Commits
8aa107f8
Commit
8aa107f8
authored
1 year ago
by
Bachelot Xavier
Browse files
Options
Download
Patches
Plain Diff
Fix file/dir group check
parent
2330626a
fd_tools_fixes
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/FusionDirectory/Tools/Setup.php
+1
-1
src/FusionDirectory/Tools/Setup.php
with
1 addition
and
1 deletion
+1
-1
src/FusionDirectory/Tools/Setup.php
+
1
−
1
View file @
8aa107f8
...
@@ -204,7 +204,7 @@ class Setup extends Cli\LdapApplication
...
@@ -204,7 +204,7 @@ class Setup extends Cli\LdapApplication
/* extract the owner and the group of the directory */
/* extract the owner and the group of the directory */
$pwuid
=
posix_getpwuid
(
$lstat
[
'uid'
]);
$pwuid
=
posix_getpwuid
(
$lstat
[
'uid'
]);
$grgid
=
posix_get
pwu
id
(
$lstat
[
'gid'
]);
$grgid
=
posix_get
grg
id
(
$lstat
[
'gid'
]);
if
((
$pwuid
===
FALSE
)
||
(
$grgid
===
FALSE
))
{
if
((
$pwuid
===
FALSE
)
||
(
$grgid
===
FALSE
))
{
throw
new
\
Exception
(
'Unable to read '
.
$dir
.
' ownership information'
.
"
\n
"
);
throw
new
\
Exception
(
'Unable to read '
.
$dir
.
' ownership information'
.
"
\n
"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets