projects
/
platform
/
core
/
system
/
tizen-platform-wrapper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gcc 5.2.0: fix linking issues caused by inline keyword
[platform/core/system/tizen-platform-wrapper.git]
/
src
/
tzplatform_get.c
diff --git
a/src/tzplatform_get.c
b/src/tzplatform_get.c
index
b190c34
..
b37a5eb
100644
(file)
--- a/
src/tzplatform_get.c
+++ b/
src/tzplatform_get.c
@@
-181,7
+181,7
@@
int main(int argc, char **argv)
if (user[i])
getpwnam_r(user, &pwd, buf, sizeof(buf), &spw);
else
if (user[i])
getpwnam_r(user, &pwd, buf, sizeof(buf), &spw);
else
- getpwuid_r(
user
, &pwd, buf, sizeof(buf), &spw);
+ getpwuid_r(
(uid_t)atoi(user)
, &pwd, buf, sizeof(buf), &spw);
if (!spw) {
fprintf( stderr, "error! %s isn't standing for a valid user.\n", user);
if (!cont)
if (!spw) {
fprintf( stderr, "error! %s isn't standing for a valid user.\n", user);
if (!cont)