Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
0d0cc4f4
...
0d0cc4f440ec32596150279b1153bfbdc200cc17
authored
2002-08-02 07:50:06 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(getMpwuid): Bugfix. It should take a pointer as its argument
1 parent
801e1938
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
MySql/MySql.c
MySql/MySql.h
MySql/MySql.c
View file @
0d0cc4f
...
...
@@ -171,7 +171,7 @@ getMpwnam (const char *username)
}
struct
passwd
*
getMpwuid
(
uid_t
uid
)
getMpwuid
(
uid_t
*
p
uid
)
{
char
*
QueryStr
=
NULL
;
MYSQL
*
m
;
...
...
@@ -202,7 +202,7 @@ getMpwuid (uid_t uid)
return
NULL
;
}
snprintf
(
uidstr
,
sizeof
(
uidstr
),
"%u"
,
uid
);
snprintf
(
uidstr
,
sizeof
(
uidstr
),
"%u"
,
*
p
uid
);
QueryStr
=
sql_expand_query
(
sql_getpwuid_query
,
uidstr
);
if
(
!
QueryStr
)
...
...
MySql/MySql.h
View file @
0d0cc4f
...
...
@@ -12,7 +12,7 @@ extern char *sql_socket;
extern
int
sql_port
;
struct
passwd
*
getMpwnam
(
const
char
*
username
);
struct
passwd
*
getMpwuid
(
uid_t
uid
);
struct
passwd
*
getMpwuid
(
uid_t
*
p
uid
);
struct
spwd
*
getMspnam
(
const
char
*
username
);
#define MHOST NULL
/* Hostname to connect to. NULL for UNIX
...
...
Please
register
or
sign in
to post a comment