Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
provision
Commits
cd6cd737
Commit
cd6cd737
authored
Mar 25, 2009
by
anarcat
Committed by
anarcat
Mar 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo in provision_posix_groupname() (was checking a non-existent $user)
parent
d310fc27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
provision.inc
provision.inc
+1
-1
No files found.
provision.inc
View file @
cd6cd737
...
...
@@ -344,7 +344,7 @@ function provision_posix_username($user) {
function
provision_posix_groupname
(
$group
)
{
// TODO: make these singletons with static variables for caching.
// we do this both ways, so that the function returns NULL if no such user was found.
if
(
is_numeric
(
$
user
))
{
if
(
is_numeric
(
$
group
))
{
$info
=
posix_getgrgid
(
$group
);
$group
=
$info
[
'name'
];
}
...
...
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