Changeset a35b458 in mainline for uspace/lib/posix/src/pwd.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/src/pwd.c
r3061bc1 ra35b458 120 120 assert(buffer != NULL); 121 121 assert(result != NULL); 122 122 123 123 if (strcmp(name, "user") != 0) { 124 124 *result = NULL; 125 125 return 0; 126 126 } 127 127 128 128 return getpwuid_r(0, pwd, buffer, bufsize, result); 129 129 } … … 161 161 assert(buffer != NULL); 162 162 assert(result != NULL); 163 163 164 164 static const char bf[] = { 'u', 's', 'e', 'r', '\0', 165 165 '/', '\0', 'b', 'd', 's', 'h', '\0' }; 166 166 167 167 if (uid != 0) { 168 168 *result = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.